InterviewHubPRO
Section Overview
Q64

Question 64 of 283

Part 3: Angular Router, Navigation & SSR Universal (63 - 75)

23%
Angular & Signals (283 Qs)•Part 3: Angular Router, Navigation & SSR Universal (63 - 75)

What is the purpose of base href tag?

The routing application should add <base> element to the index.html as the first child in the <head> tag in order to indicate how to compose navigation URLs. If app folder is the application root then you can set the href value as below

html
<base href="/">