Created
October 13, 2015 21:30
-
-
Save swr/24e5ff66e3aa7a5b7f66 to your computer and use it in GitHub Desktop.
add delay to ember data return via RSVP.later
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var self = this; | |
return new Ember.RSVP.Promise((resolve)=> { | |
Ember.run.later(()=> { | |
resolve(self.store.findAll('user')); | |
}, 3000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment