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