mercredi 1 avril 2015

Input helper valueBinding is deprecated - what's the alternative?

I've got a few text-input helper like this



{{input type="text" valueBinding="name" focus-out="focusOutName"}}


I just upgraded Ember to 1.11.0 and now get this deprecation warning:



DEPRECATION: You're attempting to render a view by passing valueBinding to a view helper, but this syntax is deprecated. You should use value=someValue instead.



However when using value it is not bound in the controller and value simply sets the text to whatever value.


How do I correctly bind it?





Aucun commentaire:

Enregistrer un commentaire