OLD | NEW |
(Empty) | |
| 1 >>> |
| 2 @Component( |
| 3 selector: 'my-selector', |
| 4 properties: const ['property-1', 'property-2', 'property-3', 'property-4', '
property-5']) |
| 5 @View( |
| 6 directives: const [OtherComponent1, OtherComponent2, OtherComponent3, OtherD
irective4, OtherDirective5, OtherDirective6, OtherDirective7,], |
| 7 styleUrls: const ['package:path.to.my.amazing.component.library/my_amazing_c
omponent.scss.css'], |
| 8 templateUrl: 'package:path.to.my.amazing.component.library/my_amazing_compon
ent.html') |
| 9 class MyAmazingComponent { |
| 10 var a = [[[1]]]; |
| 11 } |
| 12 <<< |
| 13 @Component(selector: 'my-selector', properties: const [ |
| 14 'property-1', |
| 15 'property-2', |
| 16 'property-3', |
| 17 'property-4', |
| 18 'property-5' |
| 19 ]) |
| 20 @View( |
| 21 directives: const [ |
| 22 OtherComponent1, |
| 23 OtherComponent2, |
| 24 OtherComponent3, |
| 25 OtherDirective4, |
| 26 OtherDirective5, |
| 27 OtherDirective6, |
| 28 OtherDirective7, |
| 29 ], |
| 30 styleUrls: const [ |
| 31 'package:path.to.my.amazing.component.library/my_amazing_component.scss.cs
s' |
| 32 ], |
| 33 templateUrl: |
| 34 'package:path.to.my.amazing.component.library/my_amazing_component.html'
) |
| 35 class MyAmazingComponent { |
| 36 var a = [ |
| 37 [ |
| 38 [1] |
| 39 ] |
| 40 ]; |
| 41 } |
| 42 >>> |
| 43 @Component( |
| 44 selector: 'my-selector', |
| 45 properties: const ['property-1', 'property-2', 'property-3', 'property-4', '
property-5']) |
| 46 @View( |
| 47 directives: const [OtherComponent1, OtherComponent2, OtherComponent3, OtherD
irective4, OtherDirective5, OtherDirective6, OtherDirective7,], |
| 48 templateUrl: 'package:path.to.my.amazing.component.library/my_amazing_compon
ent.html', |
| 49 styleUrls: const ['package:path.to.my.amazing.component.library/my_amazing_c
omponent.scss.css']) |
| 50 class MyAmazingComponent { |
| 51 var a = [[[1]]]; |
| 52 } |
| 53 <<< |
| 54 @Component(selector: 'my-selector', properties: const [ |
| 55 'property-1', |
| 56 'property-2', |
| 57 'property-3', |
| 58 'property-4', |
| 59 'property-5' |
| 60 ]) |
| 61 @View( |
| 62 directives: const [ |
| 63 OtherComponent1, |
| 64 OtherComponent2, |
| 65 OtherComponent3, |
| 66 OtherDirective4, |
| 67 OtherDirective5, |
| 68 OtherDirective6, |
| 69 OtherDirective7, |
| 70 ], |
| 71 templateUrl: |
| 72 'package:path.to.my.amazing.component.library/my_amazing_component.html'
, |
| 73 styleUrls: const [ |
| 74 'package:path.to.my.amazing.component.library/my_amazing_component.scss.cs
s' |
| 75 ]) |
| 76 class MyAmazingComponent { |
| 77 var a = [ |
| 78 [ |
| 79 [1] |
| 80 ] |
| 81 ]; |
| 82 } |
OLD | NEW |