I
I
Ilya2016-02-29 01:57:29
Angular
Ilya, 2016-02-29 01:57:29

How to use classic url GET parameters in angular2?

Angular2 defaults to matrix params, but I need to process a link with query params. It is generated on a third-party resource and I cannot change it, people just come to me using this link, for example: example.com/auth?param1=value1¶m2=value2. Through RouteParams.get('param1') only works with matrix.
Are there options other than manually parsing? And what is the best way to do this in TypeScript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
frontender, 2016-03-01
@frontender

stackoverflow.com/questions/34599174/how-to-handle...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question