Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/pkg/angular/lib/directive/ng_non_bindable.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/directive/ng_non_bindable.dart
diff --git a/third_party/pkg/angular/lib/directive/ng_non_bindable.dart b/third_party/pkg/angular/lib/directive/ng_non_bindable.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a5eb28cd9f9614028f937a62c5492769816ca52a
--- /dev/null
+++ b/third_party/pkg/angular/lib/directive/ng_non_bindable.dart
@@ -0,0 +1,23 @@
+part of angular.directive;
+
+/**
+ * Causes the compiler to ignore all Angular directives and markup on descendant
+ * nodes of the matching element. Note, however, that other directives and
+ * markup on the element are still processed and that only descending the DOM
+ * for compilation is prevented.
+ *
+ * Example:
+ *
+ * <div foo="{{a}}" ng-non-bindable>
+ * <span ng-bind="b"></span>{{b}}
+ * </div>
+ *
+ * In the above example, because the `div` element has the `ng-non-bindable`
+ * attribute set on it, the `ng-bind` directive and the interpolation for
+ * `{{b}}` are not processed because Angular will not process the `span` child
+ * element. However, the `foo` attribute *will* be interpolated because it is
+ * not on a child node.
+ */
+@NgDirective(selector: '[ng-non-bindable]',
+ children: NgAnnotation.IGNORE_CHILDREN)
+class NgNonBindableDirective {}

Powered by Google App Engine
This is Rietveld 408576698