Reputation: 389
I have a routing error in my web app, which is shown in the screenshot of my browser console. How do I tell from this error log in which file and at which line is this call?
Upvotes: 0
Views: 202
Reputation: 60528
One way you can see what's happening with routing is to turn on route tracing. I have an example here: https://github.com/DeborahK/Angular-Routing
RouterModule.forRoot([
{ path: 'welcome', component: WelcomeComponent },
{ path: '', redirectTo: 'welcome', pathMatch: 'full' },
{ path: '**', component: PageNotFoundComponent }
], { enableTracing: true })
Upvotes: 1