@mtangoo wrote:
I have Route action that gets data from Component and saves it to the API server. Sometimes network is slow and I want to show message to user that app have not hangs, something is being done. Now since am basically in the same route, I guess there is no transition and so the conventional "loading" wisdom does not help here.
What can I do to show loading template when the waiting for model below to resolve or reject?
Thanks
The Code
export default Ember.Route.extend({ actions:{ signUp(userInfo){ this.user = this.store.createRecord('user', userInfo); this.user.save().then(function(){ // }, function(error){ //error }).catch(function(err) { }); } }, });
Posts: 4
Participants: 2