How to access URL query parameters?


#1

Hi,

I’m running

$ionic serve -t android

and access the page in the browser using…

http://localhost:8100/?ionicplatform=android

Is it also possible to access the query parameters in code? Can You give me some hints or a basic code example?

I’d like to pass same parameters, like…

http://localhost:8100/?ionicplatform=android&foo=bla&bar=blub

What is the recommended way to access the parameters in Ionics 2 router?

Kind regards
Pawel