<a> href how to know baseurl in angular html template

时间:2018-06-28 06:52:34

标签: html angular href

In an angular html template how do I get the base url, in order to redirect the user to theproper page of the site?

example:

<a href="mybaseurl/SearchBooks">search books</a>

2 个答案:

答案 0 :(得分:1)

Angular Router用于从一个视图导航到另一个视图。

答案 1 :(得分:0)

Routing example by w3school

这篇文章很好阅读,将清除您的所有疑问。

相关问题