samedi 10 juin 2017

how to use rollbackbackattribute() for hasMany data?

In my remove function i have called rollback attribute in ember to roll back all unsaved data but it is not working with the hasMany relationship. here is my code:

remove: function() {
this.get('model').rollbackAttributes();

}

with this function it is rollbacking all the input field data ,except for hasMany relationship data. i m using ember selectize with multiple property as true. i want to roll back this selectize field which has hasMany relationship.




Aucun commentaire:

Enregistrer un commentaire