PDA

View Full Version : Angular router



nenad08
20 May 2020, 6:17 AM
I'm trying to use Angular router but without success.
If I put routerLink in <a> tag which is in ExtContainer it doesn't work. Angular miss to interpret this as route.
Here is code:


<ExtContainer docked="top"
html = "<ul>
<li>
<a routerLink='/'><i class='fas fa-home'></i></a>
</li>
<li>
<a routerLink='/requirements'>REQUIREMENTS</a>
</li>
<li>
<a routerLink='/services'>SERVICES</a>
</li>
</ul>">
</ExtContainer>


But if I put

<a routerLink='/services'>SERVICES</a>
outside ExtContainer it works as expected.

I couldn't find routerLink in any examples in repo.

Am I doing something wrong or this is not possible?