blob: add59be8c2f32d870b34db01d3410a1d36fc527b [file] [log] [blame]
>>> (indent 4)
main() {
it('should expose traverse locals', () {
expect(parser('a.b').bind({
'a': {'b': 6}
}, ContextLocals.wrapper)({
'a': {'b': 1}
}))
.toEqual(1);
});
}
<<<
main() {
it('should expose traverse locals', () {
expect(parser('a.b').bind({
'a': {'b': 6}
}, ContextLocals.wrapper)({
'a': {'b': 1}
})).toEqual(1);
});
}
>>>
@Component(
selector: 'io-controller',
template: r'<content></content>',
map: const {
'attr': '@attr',
'expr': '<=>expr',
'once': '=>!exprOnce',
'ondone': '&onDone',
'on-optional': '&onOptional'
})
class IoControllerComponent implements ScopeAware {}
<<<
@Component(
selector: 'io-controller',
template: r'<content></content>',
map: const {
'attr': '@attr',
'expr': '<=>expr',
'once': '=>!exprOnce',
'ondone': '&onDone',
'on-optional': '&onOptional'
})
class IoControllerComponent implements ScopeAware {}