Get all routes from NgRx router-store

861 Views Asked by At

Is there some built-in selector to get all app routes from NgRx router-store? Or does NgRx router-store even include the router routes at all?

1

There are 1 best solutions below

1
On BEST ANSWER

@ngrx/router-store, does not store all routes from an app.

It has:

https://ngrx.io/guide/router-store

Bindings to connect the Angular Router with Store. During each router navigation cycle, multiple actions are dispatched that allow you to listen for changes in the router's state. You can then select data from the state of the router to provide additional information to your application.