mercredi 30 août 2017

On brower back button app `init` method not called

I am showing and hinding a html tag by setting variable as true or false. it works fine. but when user clicks on back button of browser the method is not triggers. in my route my init look like :

init(){ this.controllerFor('auth-page').set('naviTab', true ); console.log('init called') },

it works if in case if the page refreshed. but not by using browsers back or forward button. how to fix this?




Aucun commentaire:

Enregistrer un commentaire