routerLink absolute url

前端 未结 7 1587
梦谈多话
梦谈多话 2020-12-30 20:54

From angular docs :

The router link directive always treats the provided input as a delta to the current url.

For instance, if the curre

7条回答
  •  天涯浪人
    2020-12-30 21:41

    As of August, 2018, Angular docs say:

    • If the first segment begins with /, the router will look up the route from the root of the app.
    • If the first segment begins with ./, or doesn't begin with a slash, the router will instead look in the children of the current activated route.
    • And if the first segment begins with ../, the router will go up one level.

提交回复
热议问题