lundi 10 avril 2017

2 way binding with an array

I am passing an array of strings from a controller to a component. There is logic in my component that will add/remove strings on the array using pushObject/removeObjects. This works fine however the controller is not notified that array changed. The only way I am able notify my controller is call action passing it the changed array. Is there better way to do this?




Aucun commentaire:

Enregistrer un commentaire