Search code examples
angularngrxngrx-router-store

Get all routes from NgRx router-store


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?


Solution

  • @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.