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.
-
1Why don't you want to use the router? / Why cant you use the Router?evayly– evayly2018-06-03 09:33:04 +00:00Commented Jun 3, 2018 at 9:33
-
document.location ??Antoniossss– Antoniossss2018-06-03 09:34:20 +00:00Commented Jun 3, 2018 at 9:34
-
@Antoniossss maybe he is having a service worker installed wouldnt direct dom access destroy that?evayly– evayly2018-06-03 09:35:52 +00:00Commented Jun 3, 2018 at 9:35
-
How would I know?Antoniossss– Antoniossss2018-06-03 09:36:21 +00:00Commented Jun 3, 2018 at 9:36
-
you can use location.search and parse itChunbin Li– Chunbin Li2018-06-03 10:01:06 +00:00Commented Jun 3, 2018 at 10:01
|
Show 2 more comments