OLD | NEW |
(Empty) | |
| 1 >>> (indent 4) |
| 2 main() { |
| 3 it('should expose traverse locals', () { |
| 4 expect(parser('a.b').bind({ |
| 5 'a': {'b': 6} |
| 6 }, ContextLocals.wrapper)({ |
| 7 'a': {'b': 1} |
| 8 })) |
| 9 .toEqual(1); |
| 10 }); |
| 11 } |
| 12 <<< |
| 13 main() { |
| 14 it('should expose traverse locals', () { |
| 15 expect(parser('a.b').bind({ |
| 16 'a': {'b': 6} |
| 17 }, ContextLocals.wrapper)({ |
| 18 'a': {'b': 1} |
| 19 })).toEqual(1); |
| 20 }); |
| 21 } |
| 22 >>> |
| 23 @Component( |
| 24 selector: 'io-controller', |
| 25 template: r'<content></content>', |
| 26 map: const { |
| 27 'attr': '@attr', |
| 28 'expr': '<=>expr', |
| 29 'once': '=>!exprOnce', |
| 30 'ondone': '&onDone', |
| 31 'on-optional': '&onOptional' |
| 32 }) |
| 33 class IoControllerComponent implements ScopeAware {} |
| 34 <<< |
| 35 @Component( |
| 36 selector: 'io-controller', |
| 37 template: r'<content></content>', |
| 38 map: const { |
| 39 'attr': '@attr', |
| 40 'expr': '<=>expr', |
| 41 'once': '=>!exprOnce', |
| 42 'ondone': '&onDone', |
| 43 'on-optional': '&onOptional' |
| 44 }) |
| 45 class IoControllerComponent implements ScopeAware {} |
OLD | NEW |