Relative links/partial routes with routerLink

前端 未结 4 988
日久生厌
日久生厌 2020-12-29 01:26

In my app some URLs take the form

/department/:dep/employee/:emp/contacts

In my sidebar I show a list of all employees, each of which has a

4条回答
  •  Happy的楠姐
    2020-12-29 02:11

    That's supposed to work. The leading / makes it an absolute route, without it (or with ./), it becomes a relative route relative to the current route. You can also use ../ (or ../../ or more) to route relative to the parent or parents parent.

提交回复
热议问题