| 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/module.dart'; |
| 4 | 4 |
| 5 @NgDirective( | 5 @NgDirective( |
| 6 children: NgAnnotation.TRANSCLUDE_CHILDREN, | 6 children: NgAnnotation.TRANSCLUDE_CHILDREN, |
| 7 selector:'[ng-if]', | 7 selector:'[ng-if]', |
| 8 map: const {'.': '=>ngIfCondition'}) | 8 map: const {'.': '=>ngIfCondition'}) |
| 9 class NgIfDirective { | 9 class NgIfDirective { |
| 10 bool ngIfCondition; | 10 bool ngIfCondition; |
| 11 } | 11 } |
| 12 | 12 |
| 13 @NgComponent( | 13 @NgComponent( |
| 14 selector: 'my-component', | 14 selector: 'my-component', |
| 15 map: const { | 15 map: const { |
| 16 'attr': '@attr', | 16 'attr': '@attr', |
| 17 'expr': '=>expr' | 17 'expr': '=>expr' |
| 18 }, | 18 }, |
| 19 template: '<div>{{ctrl.inline.template.expression}}</div>', | 19 template: '<div>{{ctrl.inline.template.expression}}</div>', |
| 20 exportExpressionAttrs: const ['exported-attr'], | 20 exportExpressionAttrs: const ['exported-attr'], |
| 21 exportExpressions: const ['exported + expression']) | 21 exportExpressions: const ['exported + expression'] |
| 22 ) |
| 22 class MyComponent { | 23 class MyComponent { |
| 23 @NgOneWay('another-expression') | 24 @NgOneWay('another-expression') |
| 24 String anotherExpression; | 25 String anotherExpression; |
| 25 | 26 |
| 26 @NgCallback('callback') | 27 @NgCallback('callback') |
| 27 set callback(Function) {} | 28 set callback(Function) {} |
| 28 | 29 |
| 29 set twoWayStuff(String abc) {} | 30 set twoWayStuff(String abc) {} |
| 30 @NgTwoWay('two-way-stuff') | 31 @NgTwoWay('two-way-stuff') |
| 31 String get twoWayStuff => null; | 32 String get twoWayStuff => null; |
| 32 } | 33 } |
| 33 | |
| 34 class CssUrlsString { | |
| 35 | |
| 36 } | |
| 37 | |
| 38 class CssUrlsList { | |
| 39 | |
| 40 } | |
| OLD | NEW |