I have an angular landing page, the application will start with a bunch of query parameters, I want to read those parameter in the app.component, is there any way to read those parameter without using Router? I'm using UIRouter for the navigation.
Asked
Active
Viewed 493 times
2
-
1Why don't you want to use the router? / Why cant you use the Router? – evayly Jun 03 '18 at 09:33
-
document.location ?? – Antoniossss Jun 03 '18 at 09:34
-
@Antoniossss maybe he is having a service worker installed wouldnt direct dom access destroy that? – evayly Jun 03 '18 at 09:35
-
How would I know? – Antoniossss Jun 03 '18 at 09:36
-
you can use [location.search and parse it](https://stackoverflow.com/a/2091331/7291379) – Chunbin Li Jun 03 '18 at 10:01
-
.......but why? – Jota.Toledo Jun 03 '18 at 13:45
-
because I'm using UIRouter for the navigation – Brian Jun 03 '18 at 14:33