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

Unified Diff: third_party/pkg/angular/lib/tools/template_cache_annotation.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/tools/template_cache_annotation.dart
diff --git a/third_party/pkg/angular/lib/tools/template_cache_annotation.dart b/third_party/pkg/angular/lib/tools/template_cache_annotation.dart
new file mode 100644
index 0000000000000000000000000000000000000000..111ed1a519d36ec4bf26821030eb52b007dad2a1
--- /dev/null
+++ b/third_party/pkg/angular/lib/tools/template_cache_annotation.dart
@@ -0,0 +1,21 @@
+library angular.template_cache_annotation;
+
+/**
+ * Annotation which will control the caching behavior of objects in the
+ * template_cache.
+ *
+ * Primary use cases are:
+ * - Adding URLs to the cache which cannot be automatically gathered from
+ * NgComponent annotations.
+ * - Adding annotation to an NgComponent to remove it from the template cache.
+ */
+class NgTemplateCache {
+ // List of strings to add to the template cache.
+ final List<String> preCacheUrls;
+ // Whether to cache these resources in the template cache. Primary use is to
+ // override the default caching behavior for NgComponent annotation.
+ final bool cache;
+
+ const NgTemplateCache(
+ {this.preCacheUrls : const <String> [], this.cache : true});
+}

Powered by Google App Engine
This is Rietveld 408576698