Closed Mobiletainment closed 6 years ago
This is a:
My version of UI-Router is: uirouter/angularjs@1.0.11
I have the following state declaration:
const state: Ng1StateDeclaration = { url: "/{typeName}/{id}", params: {id: null, typeName: null}, onExit: [() => { console.log("onExit"); }], onRetain: [() => { console.log("onRetain"); }], views: ... reloadOnSearch: false };
I'd expect the onRetain transition hook to be called, but it doesn't. However, onExit is triggered just fine.
onRetain
onExit
Please review the Sample Application which highlights common approaches: https://github.com/ui-router/sample-app-ng1
Seems to work? http://plnkr.co/edit/iA2M2WPtsRzUppYMqTbJ
Please provide a plunker or stackblitz which demonstrates the issue
This is a:
My version of UI-Router is: uirouter/angularjs@1.0.11
Bug Report
Current Behavior:
I have the following state declaration:
Expected Behavior:
I'd expect the
onRetain
transition hook to be called, but it doesn't. However,onExit
is triggered just fine.General Query
Please review the Sample Application which highlights common approaches: https://github.com/ui-router/sample-app-ng1