If I build an HTML template using routing, like here
<ul class="sb-sub-menu">
<li>
<a [routerLink]="['clientadd']">Client Add</a>
</li>
</ul>
This works as I would expect.
However, if I was building a dynamic UI from a HTML formatted string, the routing doesn't seem to apply.
<ul class="sb-sub-menu" [innerHTML]="links"></ul>
where
links: string = `
<li>
<a [routerLink]="['clientadd']">Client Add</a>
</li>`
In my situation, the list of links is more complicated and I wanted to see if there was a way to load them as templated HTML, instead of needing to create a model.
Is there such a way to load a templated HTML string and have routing working?