I would like to display a routerLink inside my d3.tree(), but I am struggling with getting it displayed as a hyperlink.
I have tried like this
.append("a")
.html(`<a [routerLink]="['/mycomponent']" fragment="1.1">link to user component</a>`);
given that this
.append("a")
.html(`<a href="mycomponent#1.1">link to user component</a>`);
works, but I don't want the whole page to reload.
The code with routerLink just writes the text and it is not clickeable, while everything is displayed correctly when just writing it into the component itself.