Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating to teams tab from players tab #6

Open
nmanduva opened this issue May 2, 2019 · 1 comment
Open

Navigating to teams tab from players tab #6

nmanduva opened this issue May 2, 2019 · 1 comment

Comments

@nmanduva
Copy link

nmanduva commented May 2, 2019

I have created a Button on Players tab "Go To teams" as shown below in player-detail.component.html
<Button text="Go To Teams" [nsRouterLink]="['../../teams']">

The error log shows 'tabs/default' url not found.

CONSOLE LOG file:///app/app/app.module.js:18:20: ### ErrorHandler Error: Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'tabs/default'
noMatchError@file:///app/tns_modules/@angular/router/bundles/router.umd.js:2557:29 [angular]
file:///app/tns_modules/@angular/router/bundles/router.umd.js:2538:45 [angular]
error@file:///app/tns_modules/rxjs/internal/operators/catchError.js:48:39 [angular]
_error@file:///app/tns_modules/rxjs/internal/Subscriber.js:92:31 [angular]
error@file:///app/tns_modules/rxjs/internal/Subscriber.js:72:24 [angular]
_error@file:///app/tns_modules/rxjs/internal/Subscriber.js:92:31 [angular]

@hazardv
Copy link

hazardv commented May 5, 2020

I am trying to do the same thing. I have tried a number of different things using a nsRouterLink and specifying just the teams page or a specific team details page on the teams tab. I also tried setting up a function that gets called when tapping the button and using routerExtensions to navigate by URL or just calling navigate and specifying the outlet in a bunch of different ways. All of them result in "Error: Cannot match and routes."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants