| OLD | NEW |
| 1 part of angular.directive; | 1 part of angular.directive; |
| 2 | 2 |
| 3 /** | 3 /** |
| 4 * The [NgBindTemplateDirective] specifies that the element text content should | 4 * The [NgBindTemplateDirective] specifies that the element text content should
be replaced with |
| 5 * be replaced with the interpolation of the template in the ngBindTemplate | 5 * the interpolation of the template in the ngBindTemplate attribute. Unlike ngB
ind, the |
| 6 * attribute. Unlike ngBind, the ngBindTemplate can contain multiple {{ }} | 6 * ngBindTemplate can contain multiple {{ }} expressions. |
| 7 * expressions. | |
| 8 */ | 7 */ |
| 9 @NgDirective( | 8 @NgDirective( |
| 10 selector: '[ng-bind-template]', | 9 selector: '[ng-bind-template]', |
| 11 map: const {'ng-bind-template': '@bind'}) | 10 map: const {'ng-bind-template': '@bind'}) |
| 12 class NgBindTemplateDirective { | 11 class NgBindTemplateDirective { |
| 13 final dom.Element element; | 12 dom.Element element; |
| 14 | 13 |
| 15 NgBindTemplateDirective(this.element); | 14 NgBindTemplateDirective(this.element); |
| 16 | 15 |
| 17 set bind(value) { | 16 set bind(value) { |
| 18 element.text = value; | 17 element.text = value; |
| 19 } | 18 } |
| 20 } | 19 } |
| OLD | NEW |