Open dragos-cojocari opened 5 years ago
I think that solution to your problem is explained here: https://github.com/RafaelVidaurre/angular-permission/wiki/Usage-in-ui-router-states#single-redirection-rule https://github.com/RafaelVidaurre/angular-permission/wiki/Usage-in-ui-router-states#dynamic-redirection-rules
See that params has to be passed to redirection function in order to be handled properly by router.
Thanks @masterspambot masterspambot
See that params has to be passed to redirection function in order to be handled properly by router.
Right, I saw that but my problem is that no params or state params or transitionProperties are available in the redirectTo
function. The param is not static, it comes from the stateParams of the previous state.
Environment:
Behavior:
Issue: Is state params transfer supported? Do I have a configuration error?
main.module.js
login.module.js
The transitionProperties shows the following: