but in Ember.observer function transitionToRoute() is not work
account.enable Controller:
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['code'],
code: null,
fromUrl:Ember.computed('code','model',function(){
let code = this.get('code');
return code;
}),
codeChange: Ember.observer('code', function() {
let self=this;
if(code.length>0){
self.transitionToRoute('account.signin');
}
})
});