| OLD | NEW |
| 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 } |
| OLD | NEW |