I’m refreshing my model in my show
route, and want to briefly show the loading substate whilst this async behaviour is happening as the screen can take a while to update with the fresh data.
Here’s my setupController function:
#app/routes/events/show.js
setupController: function(controller,model){
var self = this;
this.intermediateTransitionTo('events.loading');
model.reload().then(function(m){
controller.set('model',m);
self.transitionTo('events.show',m);
});
}
The loading route is entered, but then gets stuck in that loading route forever. How do I transition out of the loading route and back into the events.show
route.