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

Side by Side 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, 11 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
(Empty)
1 library angular.template_cache_annotation;
2
3 /**
4 * Annotation which will control the caching behavior of objects in the
5 * template_cache.
6 *
7 * Primary use cases are:
8 * - Adding URLs to the cache which cannot be automatically gathered from
9 * NgComponent annotations.
10 * - Adding annotation to an NgComponent to remove it from the template cache.
11 */
12 class NgTemplateCache {
13 // List of strings to add to the template cache.
14 final List<String> preCacheUrls;
15 // Whether to cache these resources in the template cache. Primary use is to
16 // override the default caching behavior for NgComponent annotation.
17 final bool cache;
18
19 const NgTemplateCache(
20 {this.preCacheUrls : const <String> [], this.cache : true});
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698