- What is the difference between Angular router class and angular activated route class?
- when to use this above class?
Asked
Active
Viewed 3,124 times
2
Hrishikesh Kale
- 5,570
- 3
- 17
- 25
Aakansha Chandel
- 33
- 1
- 3
-
1Does this answer your question? [What is the difference between ActivatedRoute and ActivatedRouteSnapshot in Angular4](https://stackoverflow.com/questions/46050849/what-is-the-difference-between-activatedroute-and-activatedroutesnapshot-in-angu) – Kirubel Sep 26 '20 at 06:51
1 Answers
2
Angular Router is a service that presents a particular component view for a given URL. The Router interprets the URL in the browser and handles navigation to the configured component. After the end of each successful navigation lifecycle, the router builds a tree of ActivatedRoute objects that make up the current state of the router.
AcivatedRoute in an injectable service that provides access to information about a route associated with a component such as the route path and URL parameters in the component.
Both of them are included in the package '@angular/router'. You can read more in the Angular Docs.
Delwyn Pinto
- 604
- 1
- 7
- 14