| OLD | NEW |
| (Empty) | |
| 1 library test_files.main; |
| 2 |
| 3 import 'package:angular/core/module.dart'; |
| 4 import 'package:angular/tools/template_cache_annotation.dart'; |
| 5 |
| 6 @NgComponent( |
| 7 selector: 'my-component', |
| 8 templateUrl: 'test/io/test_files/templates/main.html' |
| 9 ) |
| 10 @NgTemplateCache() |
| 11 class MyComponent { |
| 12 } |
| 13 |
| 14 @NgComponent( |
| 15 selector: 'my-component2', |
| 16 templateUrl: 'test/io/test_files/templates/dont.html' |
| 17 ) |
| 18 @NgTemplateCache(cache: false) |
| 19 class MyComponent2 { |
| 20 } |
| 21 |
| 22 |
| 23 @NgComponent( |
| 24 selector: 'my-component3', |
| 25 templateUrl: 'test/io/test_files/templates/dont.html' |
| 26 ) |
| 27 @NgTemplateCache(cache: true) |
| 28 class MyComponent3 { |
| 29 } |
| OLD | NEW |