-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query params resolves as undefined #17
Comments
Nope, the URL with the param declared should be enough. I'll see if I can reproduce. |
if you clone the let home = { name: 'home', component: Home, url: '/home?foo' }; I added |
As this issue is almost 2 years old, it is being closed. If you feel like the problem reported is still valid, please add a comment saying it is still affecting you. We will reevaluate it and if it is valid we will reopen it. Thank you for supporting and contributing to the project. |
I have this state definition:
const routerState = { name: 'router', url: '/sign-router?event', component: SignRouter }; const router = new UIRouterReact(); router.urlRouterProvider.otherwise('/'); router.stateRegistry.register(routerState); router.start();
event
should be a state param defined in the url as a query param but trying for examplehttp://localhost:8080/#/sign-router?event=ttl_expired
the state component get the following values in theprops.resolves
:resolves: { $stateParams: { #: null, event: undefined },... }
Am I missing any state param configuration for query params? If use the
/route/:param
notation works but not with query params notation.The text was updated successfully, but these errors were encountered: