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

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

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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_template.dart
diff --git a/third_party/pkg/angular/lib/directive/ng_template.dart b/third_party/pkg/angular/lib/directive/ng_template.dart
index 649157b1db7978a61447063fc562079d70a48d99..969df2054b71a34b17a566c4d48a8b7bf741520c 100644
--- a/third_party/pkg/angular/lib/directive/ng_template.dart
+++ b/third_party/pkg/angular/lib/directive/ng_template.dart
@@ -1,7 +1,7 @@
part of angular.directive;
/**
- * The [NgTemplateElementDirective] allows one to preload an Angular template
+ * The [NgTemplate] allows one to preload an Angular template
* into the [TemplateCache]. It works on `<template>` and `<script>` elements
* that have `type="text/ng-template`. For such elements, The entire contents
* of the elements are loaded into the [TemplateCache] under the URL specified
@@ -18,20 +18,22 @@ part of angular.directive;
*
* Refer [TemplateCache] for a **full example** as well as more information.
*/
-@NgDirective(
+@Decorator(
selector: 'template[type=text/ng-template]',
map: const {'id': '@templateUrl'})
-@NgDirective(
+@Decorator(
selector: 'script[type=text/ng-template]',
- children: NgAnnotation.IGNORE_CHILDREN,
+ children: Directive.IGNORE_CHILDREN,
map: const {'id': '@templateUrl'})
-class NgTemplateDirective {
+class NgTemplate {
final dom.Element element;
final TemplateCache templateCache;
- NgTemplateDirective(this.element, this.templateCache);
+ NgTemplate(this.element, this.templateCache);
set templateUrl(url) => templateCache.put(url, new HttpResponse(200,
element is dom.TemplateElement
? (element as dom.TemplateElement).content.innerHtml
: element.innerHtml));
}
+
+
« no previous file with comments | « third_party/pkg/angular/lib/directive/ng_switch.dart ('k') | third_party/pkg/angular/lib/filter/currency.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698