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