Checking out Ember's loading state
If you need to format your loading state in Ember, put this into your before or after model hook in your route in order to see it longer:
var promise = new Promise(function(resolve, reject) {
// on success
Ember.run.later(this, function() {
resolve("test");
}, 3000);
});
return promise;
Written by RyanJM
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ember
Authors
Related Tags
#ember
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#