ember.js - Ember Data - destroy model from controller -
i have lead model defined ds.model , noticed weird when working creating app. when rest resource doesn't return resource in subsequent calls, old data stays around. tried solve doing:
var model = this.get('model'); model.foreach(function(model) { model.destroy(); });
however, nothing happens. have searched around can't find proper way clear out specific model cache , refresh find(). using ember data 0.13
please try this:
model.deleterecord();
Comments
Post a Comment