feat(core): desugar [()] to [prop] and (prop-change)

BREAKING CHANGE

Before

```
<cmp [(prop)]="field"> was desugared to <cmp [prop]="field" (prop)="field=$event">
```

After
```
<cmp [(prop)]="field"> is desugared to <cmp [prop]="field" (prop-change)="field=$event">
```

Closes #4658
This commit is contained in:
vsavkin
2015-10-10 19:56:22 -07:00
committed by Victor Savkin
parent df09389df8
commit 7c6130c2c5
9 changed files with 33 additions and 21 deletions

View File

@ -282,7 +282,7 @@ export function main() {
],
[
BoundEventAst,
'prop',
'propChange',
null,
'v = $event',
'TestComp > div:nth-child(0)[[(prop)]=v]'
@ -305,7 +305,7 @@ export function main() {
],
[
BoundEventAst,
'prop',
'propChange',
null,
'v = $event',
'TestComp > div:nth-child(0)[bindon-prop=v]'