Hi,
After upgrading to ng2-rc6 and nativescript-angular 0.5.0 all the [nsRouterLink] inline links in my templates are not working. So this does not work:
<Button text="Settings" [nsRouterLink]="['/settings']"></Button>
But this does:
<Button text="Settings" (tap)="goSettings()"></Button>
goSettings() {
this._router.navigate(["/settings"]);
}
Any ideas on what is causing this issue?
Thanks
I confirm this is occurring with the sample-groceries project if I add in a nsRouterLink
hey @bnussey
We are using [nsRouterLink] in this sample app and it works as expected (with RC6 and nativescript-angular 0.5.0) (Perhaps you can provide us with some more code to reproduce your case)
Ok so the fix is on every single module, this must be imported:
import { NativeScriptRouterModule } from "nativescript-angular/router";
And then add that to the imports.
Most helpful comment
Ok so the fix is on every single module, this must be imported:
import { NativeScriptRouterModule } from "nativescript-angular/router";And then add that to the imports.