Last Updated: February 25, 2016
·
289
· ryanjm

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;