Skip to content

Binding failure in $init #278

@flongo

Description

@flongo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions