My application receives an error when I try to route to a named outlet using this link in html:
<a [routerLink]=.../>
But the same route works using this.router.navigate from a ts handler function.
The following StackBlitz shows the issue:StackBlitzNavErrorExample
Click on "CarLink" which shows a simple navigation page, then notice how the button "Change" works but the link "GI Link" does not. But the routing looks the same for me. I want to use [routerLink]= so I can also use routerLinkActive="myClass" to hightlight the link selected.
I receive the following error even though I am not changing the route for the primary outlet:
ERROR
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'car/9'
Error: Cannot match any routes. URL Segment: 'car/9'