ActivatedRoute

What Is ActivatedRoute in Routes?

What Is ActivatedRoute?
ActivatedRoute is an interface and it contains the information about a route associated with a component loaded into an outlet and it can also be used to traverse the router state tree.

And it contains the list of Properties –
1.      Snapshot – It is the current snapshot of this route.
2.      URL – It is an observable of the URL segments and it matched by this route
3.      Params – It is an observable of the matrix parameters scoped to this route
4.      QueryParams - it is an observable of the query parameters shared by all the routes
5.      Fragment- It is an observable of the URL fragment shared by all the routes
6.      Data- It is an observable of the static and resolved data of this route.
7.      Outlet. It's a constant and outlet name of the route
8.      Component-  It's a constant and a component of the route
9.      RouteConfig- This configuration used to match this route
10.  Root- This is the root of the router state
11.  Parent - The parent of this route in the router state tree
12.  FirstChild- The first child of this route in the router state tree
13.  Children- The children of this route in the router state tree
14.  pathFromRoot- The path from the root of the router state tree to this route
15.  paramMap- It is read-only
16.  queryParamMap- It is read-only

ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

What Is ActivatedRoute in Routes? What Is ActivatedRoute in Routes? Reviewed by Anil Singh on 4:14 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^