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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -