Passing state parameters inside redirectTo
See original GitHub issueHello,
First at all, I’m github newbee, and I never contributed to an OpenSource project, so please be kind with me 😃.
I would love to be able to write something like redirectTo: 'login({origin:"dashboard"})'
in the state definition, or at least be able to specify my own state parameters. Using the same syntax that ui-sref
would be very handy.
But looking at permission source code i see that it is currently not possible and more importantly, i see that the toParams
of the PermissionMap
are used as state parameters for the redirect. Is there any particular reason to send toParams
during the redirect ?
I gave a look at ui-router’s source code to see how they parse ui-sref
expressions and it seems pretty straightforward. Would you like such a contribution to the project ? My proposition is simply to be able to specify the state like it is done is ui-sref
, and i can implement it.
Have a good day !!!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:19 (1 by maintainers)
Top GitHub Comments
Done.
Implemented in v2.2.3