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

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

Powered by Google App Engine
This is Rietveld 408576698