user1238784
user1238784

Reputation: 2440

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

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>

Upvotes: 0

Views: 303

Answers (1)

rahool
rahool

Reputation: 639

Angular Router is used for navigation from one view to the next.

Upvotes: 1

Related Questions