How do I delete records from the local store only in Ember? My store has a a record type of vdpmodel with 3 records in it, which I have created in the local store. I want to delete a specific record in vdpmodel, without ember requesting any data from the server.
I tried the tutorial in the Ember website, using find(..).then function(delete), but that makes a request to the server, which I don't want it to do.
In theory, I want something like the following:
this.store.all('vdpmodel',{type:"abc"}).then(function(data){data.deleteRecord();});
But it errors with 'the function is undefined'
Any ideas on how to do this? Any help would be much appreciated.
Aucun commentaire:
Enregistrer un commentaire