OLD | NEW |
1 part of angular.directive; | 1 part of angular.directive; |
2 | 2 |
3 /** | 3 /** |
4 * Causes the compiler to ignore all Angular directives and markup on descendant | 4 * Causes the compiler to ignore all Angular directives and markup on descendant |
5 * nodes of the matching element. Note, however, that other directives and | 5 * nodes of the matching element. Note, however, that other directives and |
6 * markup on the element are still processed and that only descending the DOM | 6 * markup on the element are still processed and that only descending the DOM |
7 * for compilation is prevented. | 7 * for compilation is prevented. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
11 * <div foo="{{a}}" ng-non-bindable> | 11 * <div foo="{{a}}" ng-non-bindable> |
12 * <span ng-bind="b"></span>{{b}} | 12 * <span ng-bind="b"></span>{{b}} |
13 * </div> | 13 * </div> |
14 * | 14 * |
15 * In the above example, because the `div` element has the `ng-non-bindable` | 15 * In the above example, because the `div` element has the `ng-non-bindable` |
16 * attribute set on it, the `ng-bind` directive and the interpolation for | 16 * attribute set on it, the `ng-bind` directive and the interpolation for |
17 * `{{b}}` are not processed because Angular will not process the `span` child | 17 * `{{b}}` are not processed because Angular will not process the `span` child |
18 * element. However, the `foo` attribute *will* be interpolated because it is | 18 * element. However, the `foo` attribute *will* be interpolated because it is |
19 * not on a child node. | 19 * not on a child node. |
20 */ | 20 */ |
21 @NgDirective( | 21 @Decorator( |
22 selector: '[ng-non-bindable]', | 22 selector: '[ng-non-bindable]', |
23 children: NgAnnotation.IGNORE_CHILDREN) | 23 children: Directive.IGNORE_CHILDREN) |
24 class NgNonBindableDirective {} | 24 class NgNonBindable {} |
OLD | NEW |