Home Using UI router, how to pass parameters to url without altering the state?
Reply: 0

Using UI router, how to pass parameters to url without altering the state?

user826
1#
user826 Published in April 26, 2018, 1:42 pm

In my controller, I use $state.go('home', {"parameters": paramValue, "parameter1": another value, "parameters3": another another value}, {reload:true}); and while this does attempt to go to the home state and passes the parameters to the url, the home state view keeps loading. If I copy the url with the parameters passed, and click enter, everything loads properly.

This is the process of going to the home tab. -> the url changes to reflect that home state is trying to be reached -> a second reload occurs when the url gets the parameters passed. The parameters do get passed successfully. -> It keeps trying to load the home view. The url is correct and works( parameters and all); as I can copy the link and access it. I've also toggled with reload to false. Should I try transitionTo?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.482815 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO