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
Post a Comment