[nsRouterLink] not working when used in a StackLayout


#1

Hello everybody,
i’ve setup a simple tabView, as follows:

<TabView xmlns:basic="basic">
<StackLayout *tabItem="{title: 'Profile'}" >
</StackLayout>

<StackLayout *tabItem="{title: 'Stats'}">
</StackLayout>

<StackLayout *tabItem="{title: 'Settings'}" [nsRouterLink]="['/demo']" >
    <Label text="test routing" class="side-label" row="0" col="1" [nsRouterLink]="['/demo']" ></Label>
</StackLayout>

<StackLayout *tabItem="{title: 'Altro'}" (tap)="goTo()">
 <Label text="4th tab item"></Label>
</StackLayout>
</TabView>

i put a routerlink inside the Settings Tab, the route works correctly when i click on the Label inside the tab, but it doesn’t work when i select the tabItem. Is the sintax wrong?

thanks in advance