| 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 [NgBindTemplate] specifies that the element text content should |
| 5 * be replaced with the interpolation of the template in the ngBindTemplate | 5 * be replaced with the interpolation of the template in the ngBindTemplate |
| 6 * attribute. Unlike ngBind, the ngBindTemplate can contain multiple {{ }} | 6 * attribute. Unlike ngBind, the ngBindTemplate can contain multiple {{ }} |
| 7 * expressions. | 7 * expressions. |
| 8 */ | 8 */ |
| 9 @NgDirective( | 9 @Decorator( |
| 10 selector: '[ng-bind-template]', | 10 selector: '[ng-bind-template]', |
| 11 map: const {'ng-bind-template': '@bind'}) | 11 map: const {'ng-bind-template': '@bind'}) |
| 12 class NgBindTemplateDirective { | 12 class NgBindTemplate { |
| 13 final dom.Element element; | 13 final dom.Element element; |
| 14 | 14 |
| 15 NgBindTemplateDirective(this.element); | 15 NgBindTemplate(this.element); |
| 16 | 16 |
| 17 set bind(value) { | 17 void set bind(value) { |
| 18 element.text = value; | 18 element.text = value; |
| 19 } | 19 } |
| 20 } | 20 } |
| OLD | NEW |