javascript - onInit, onAfterRendering not being called when returning back to the page -
i have developed 2 views view1.xml , view2.xml in both implemented oninit()
, onafterrendering()
. implemented button use router.navto()
method.
when come view2 view1, view1's oninit/onafterrendering not called. same happens if press browser's button.
please help!
oninit , called once, that's how defined! furthermore, instead of relying on onafterrendering should listen matched events of routes, see navigation , routing tutorial of sdk! never know when view gets rerendered, make sure understand when makes sense it, i.e. modify dom after rerendering has happened or if need register third party libs somewhere in dom...
Comments
Post a Comment