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

Unified Diff: third_party/pkg/angular/lib/directive/ng_bind_template.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/directive/ng_bind_template.dart
diff --git a/third_party/pkg/angular/lib/directive/ng_bind_template.dart b/third_party/pkg/angular/lib/directive/ng_bind_template.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2a8f72f0e984843c9010ef4837ad2b62bb627bbb
--- /dev/null
+++ b/third_party/pkg/angular/lib/directive/ng_bind_template.dart
@@ -0,0 +1,19 @@
+part of angular.directive;
+
+/**
+ * The [NgBindTemplateDirective] specifies that the element text content should be replaced with
+ * the interpolation of the template in the ngBindTemplate attribute. Unlike ngBind, the
+ * ngBindTemplate can contain multiple {{ }} expressions.
+ */
+@NgDirective(
+ selector: '[ng-bind-template]',
+ map: const {'ng-bind-template': '@bind'})
+class NgBindTemplateDirective {
+ dom.Element element;
+
+ NgBindTemplateDirective(this.element);
+
+ set bind(value) {
+ element.text = value;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698