gpt4 book ai didi

angular - 如何在功能模块内使用@ngrx/router-store

转载 作者:行者123 更新时间:2023-12-02 21:27:24 24 4
gpt4 key购买 nike

NGRX documentation for Router-Store ,他们只提供了 .forRoot() 的示例。当我尝试使用 .forFeature() 时,我发现不存在这样的静态方法。

我希望能够定义在我的功能模块(以及应用程序模块)中使用的某些操作和效果。

如何在功能模块内部使用 router-store?

最佳答案

您无需为功能模块进行设置。您只需在 app.module.ts 中通过 StoreRouterConnectingModule.forRoot() 设置一次就足够了。

关于angular - 如何在功能模块内使用@ngrx/router-store,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51157526/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com