KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an Ember-Data model. I would like to do some processing in the .then promise once it has loaded and then return the same model as a promise. This is what I have right now. How do I wrap up the return object as a promise so that other promises can be chained? App.Member.find(1).then(function(member){ //do some processing here return member; // Does this need to be wrapped as a promise? }
Tags (comma-separated)
Save Edits
Cancel