7 Router link

What Is RouterState in Routers?

What Is RouterState?
RouterState is interface and it represents the state of the router.

It looks like this.
interface RouterState extends Tree {
  toString(): string
It is also a tree of activated routes.

We can access the current RouterState from anywhere in the Angular app using the Router service and the routerState property.


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 RouterState in Routers? What Is RouterState in Routers? Reviewed by Anil Singh on 4:12 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.