DEV Community

DEEGAMBER SINGH
DEEGAMBER SINGH

Posted on

Angular 9|8|7 ActivatedRoute Route Tutorial with Example

The post (https://www.positronx.io//understand-angular-7-activatedroute-route-and-its-usage/) appeared first on positronX.io.

Understand Angular 7|8|9 ActivatedRoute Interface Class
Angular offers ActivatedRoute interface class, it carries the information about a route linked to a component loaded into the Angular app template. An ActivatedRoute contains the router state tree within the angular app’s memory.

Understand ActivatedRoute Interface Class Properties

Snapshot – This is the current snapshot of this route.
URL – It is an observable of the URL segments and it matched by this route

Params – Observable of the matrix parameters scoped to this route

QueryParams – Observable of the query parameters shared by all the routes

Fragment – Observable of the URL fragment shared by all the routes

Click here to read more

Top comments (0)