ember.js - Redirect don't work with afterModel -


i have following route:

var userroute = ember.route.extend({   aftermodel: function(model) { //    model.ensurealldata();   },   redirect: function  (model) {     this.transitionto('user.followers', model);   } }); 

after adding aftermodel hook, redirection don't work anymore, code in hook commented out.

i guess should put transitionto aftermodel hook , remove redirect @ all, if i'm not mistaken deprecated in favor aftermodel:

var userroute = ember.route.extend({   aftermodel: function(model) {     //model.ensurealldata();     this.transitionto('user.followers', model);   } }); 

hope helps.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -