How to get query params from url in Angular 2?

Posted by Jessica Taylor | Updated on

In this example, I have shared how to get query params from url in Angular 2? You can do by injecting an instance of ActivatedRoute one can subscribe to a variety of observables, including a queryParams and a params observable:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers