I have an angular 5 component that needs to open a link in new tab, I tried the following:
page link>
Use window.open(). It's pretty straightforward !
window.open()
In your component.html file-
component.html
page link
In your component.ts file-
component.ts
goToLink(url: string){ window.open(url, "_blank"); }