deleteRecord
Marks the record as deleted but does not save it. You must call save
afterwards if you want to persist it. You might use this method if you want to allow the user to still rollbackAttributes()
after a delete it was made.
Example
app/routes/model/delete.js
import Ember from 'ember'; export default Ember.Route.extend({ actions: { softDelete: function() { this.controller.get('model').deleteRecord(); }, confirm: function() { this.controller.get('model').save(); }, undo: function() { this.controller.get('model').rollbackAttributes(); } } });
Please login to continue.