How to delete all records associated with an ember model without clearing local Storage?

Posted by Prem Tiwari | Updated on

If you want to delete all records associated with an ember model without clearing local Storage? You can do it by calling deleteRecord() within forEach will break the loop. You can fix it by wrapping the delete code in an Ember.run.once function like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers