I am loading the route. His model hook loads some models. Some of them are retrieved from the ember repository, and some of them promises are requested through AJAX:
model: function () {
return Em.RSVP.hash({
someServerData: App.DataService.get(),
users: this.store.find('user')
});
}
App.DataService.get() defined as:
get: function () {
return new Ember.RSVP.Promise(function(resolve, reject) {
});
}
Obviously, if the request is rejected, the flow is interrupted, and I cannot display the page at all.
Is there any way to overcome this?
source
share