base href tag

Go back to Tutorial

Most routing applications should add a <base> element to the index.html as the first child in the <head> tag to tell the router how to compose navigation URLs. If the app folder is the application root, as it is for the sample application, set the href value exactly as shown here.

src/index.html (base-href)

<base href=”/”>

Go back to Tutorial

Angular Routing Basics
Router Imports

Get industry recognized certification – Contact us

keyboard_arrow_up