| OLD | NEW |
| (Empty) | |
| 1 part of angular.directive; |
| 2 |
| 3 /** |
| 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 |
| 6 * markup on the element are still processed and that only descending the DOM |
| 7 * for compilation is prevented. |
| 8 * |
| 9 * Example: |
| 10 * |
| 11 * <div foo="{{a}}" ng-non-bindable> |
| 12 * <span ng-bind="b"></span>{{b}} |
| 13 * </div> |
| 14 * |
| 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 |
| 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 |
| 19 * not on a child node. |
| 20 */ |
| 21 @NgDirective(selector: '[ng-non-bindable]', |
| 22 children: NgAnnotation.IGNORE_CHILDREN) |
| 23 class NgNonBindableDirective {} |
| OLD | NEW |