I'm trying to put a routerLink within in a const but it doesn't work.
const str4 = `<div `+knowmore_style+`>
<b><a routerLink="/details/` + entry._id + `">
<img src="assets/icon/add.png" alt="ques-mark" style="width:1em; filter:invert(1)">
Know More
</a></b>
The button is only clickable when I put like this :
const str4 = `<div `+knowmore_style+`>
<b><a href="/details/` + entry._id + `">
<img src="assets/icon/add.png" alt="ques-mark" style="width:1em; filter:invert(1)">
Know More
</a></b>
Do you know guys how to do? Thanks in advance
Would this work by chance?