从 NgRx router-store 获取所有路由
Get all routes from NgRx router-store
是否有一些内置选择器可以从 NgRx router-store 获取所有应用程序路由?
还是 NgRx router-store 甚至包含路由器路由?
@ngrx/router-store
,不存储来自应用程序的所有路线。
它有:
- actions that dispatch on navigation
- selectors to select data from the current route
- serializers to decide what goes into the store
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.
是否有一些内置选择器可以从 NgRx router-store 获取所有应用程序路由? 还是 NgRx router-store 甚至包含路由器路由?
@ngrx/router-store
,不存储来自应用程序的所有路线。
它有:
- actions that dispatch on navigation
- selectors to select data from the current route
- serializers to decide what goes into the store
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.