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

Side by Side Diff: third_party/pkg/angular/lib/directive/ng_bind_template.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of angular.directive; 1 part of angular.directive;
2 2
3 /** 3 /**
4 * The [NgBindTemplateDirective] specifies that the element text content should be replaced with 4 * The [NgBindTemplateDirective] specifies that the element text content should
5 * the interpolation of the template in the ngBindTemplate attribute. Unlike ngB ind, the 5 * be replaced with the interpolation of the template in the ngBindTemplate
6 * ngBindTemplate can contain multiple {{ }} expressions. 6 * attribute. Unlike ngBind, the ngBindTemplate can contain multiple {{ }}
7 * expressions.
7 */ 8 */
8 @NgDirective( 9 @NgDirective(
9 selector: '[ng-bind-template]', 10 selector: '[ng-bind-template]',
10 map: const {'ng-bind-template': '@bind'}) 11 map: const {'ng-bind-template': '@bind'})
11 class NgBindTemplateDirective { 12 class NgBindTemplateDirective {
12 dom.Element element; 13 final dom.Element element;
13 14
14 NgBindTemplateDirective(this.element); 15 NgBindTemplateDirective(this.element);
15 16
16 set bind(value) { 17 set bind(value) {
17 element.text = value; 18 element.text = value;
18 } 19 }
19 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698