【发布时间】:2021-10-14 06:30:47
【问题描述】:
我正在将一个项目从带有 Angular 8.2 的 NS 6.5 迁移到 NS 8.1 和 Angular 12.2 我遇到了不起作用的 nsRouterLinkActive 指令的问题。 我正在为我的模块使用延迟加载
{ path: "mysettings", loadChildren: () => import("~/app/mysettings/mysettings.module").then((m) => m.MysettingsModule) }
然后在我的 app.component 中使用以下代码进行导航:
<Label text="&#xf011;" class="fas bottomButton" [nsRouterLink]="['/mysettings']" nsRouterLinkActive="active" pageTransition="slide"></Label>
导航工作正常,我的班级工作正常,但它从未被 nsRouterLinkActive 指令添加。 有什么帮助吗?
【问题讨论】:
标签: nativescript nativescript-angular