-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
When an attribute of a component is "2-way"-bound, the data model is not updated if the attribute is modified in the $init method of the component.
You can find an example here: http://plnkr.co/edit/KQFVQ8kC6GoKctYE38uD
On top of that, if the $refresh method is implemented in the controller and another attribute is changed inside of it, the update done in the $init is ignored: http://plnkr.co/edit/gARSz3kim7YNKQrMBkaH
This is probably due to the fact that the value for the index attribute is re-read from the data-model, which hasn't been updated before.