After angularJs: uses ng-include, the link to the current page is invalid

accidentally found that after the page uses ng-include to include the template page, the link to the current page in both the parent page and the template page is invalid. is this a mechanism of angularjs? Do not understand what is the reason, I do not know what way to solve it?

for example, a parent page has a link in the index.html, page

index.html

<a href="index.html"></a>

another template page that contains navigation
nav.html

<div>
    <a href="index.html"></a>
    <a href="list.html"></a>
</div>

now, the parent page includes the template page with ng-include
index.html

<a href="index.html"></a>
<div ng-include=""nav.html""></div>

ok, now "return to the home page" and click on the "home page" link in the navigation without any reaction. I don"t know why?

Nov.25,2021

there is no such problem as you mentioned

Menu