ember.js - Is there a way to perform rollback in ember-model? -
i trying set simple crud operations using ember-model. while editing model in app, want there "cancel edit" option. should undo changes made data, if not saved store.
i know ember-data call "model.rollback()" not see way ember-model. there way achieve functionality ember-model?
basically, how turn code works ember-data can use ember-model?
canceledit: function() { this.get('model').rollback(); this.set('isediting', false); }
also first question have asked on site tips proper way ask questions welcome
in ember model function name revert
model.revert();
Comments
Post a Comment