| OLD | NEW |
| 1 library test_files.main; | 1 library test_files.main; |
| 2 | 2 |
| 3 import 'package:angular/core/annotation.dart'; | 3 import 'package:angular/core/module.dart'; |
| 4 import 'package:angular/tools/template_cache_annotation.dart'; | 4 import 'package:angular/tools/template_cache_annotation.dart'; |
| 5 | 5 |
| 6 part 'partial.dart'; | 6 @NgComponent( |
| 7 selector: 'my-component', |
| 8 templateUrl: '/test/io/test_files/templates/main.html') |
| 9 @NgTemplateCache() |
| 10 class MyComponent |
| 11 { |
| 12 } |
| 7 | 13 |
| 8 class MainClass { | 14 @NgComponent( |
| 15 selector: 'my-component2', |
| 16 templateUrl: '/test/io/test_files/templates/dont.html') |
| 17 @NgTemplateCache(cache: false) |
| 18 class MyComponent2 |
| 19 { |
| 9 } | 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 |