I have a component that uses an observable and it calls a service to make an API call. The API returns some HTML, which is rendered in the view.
The HTML looks something like this:
<p>abc</p><a href=\"http://abc.xyz.com/\" class=\"external-link\" rel=\"nofollow\">
Click me to open in new window</a>
In Angular, is there a way to add some JS, such that anchors with "external-link" class open in a new window or tab?