ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

后端 未结 3 1604
野趣味
野趣味 2020-12-15 17:35

I have simple navigation in angular 6 app,

Here is HTML

3条回答
  •  渐次进展
    2020-12-15 18:07

    In case you need the [] syntax, useful for "edit forms" when you need to pass parameters like id with the route, you would do something like:

    [routerLink]="['edit', business._id]"
    

    As for an "about page" with no parameters like yours,

    [routerLink]="/about"
    

    or

    [routerLink]=['about']
    

    will do the trick.

提交回复
热议问题