I am trying to put an anchor tag in an innerHTML and I am using angular 4.
in HTML file: <div [innerHTML]="'myText' | translate">
in Component: const myText = "mytext go here and <a (click)='myFunction()'> click here </a>."
I am not getting the "(click)='myFunction()'" inside in the DOM.