I have an angular 5 component that needs to open a link in new tab, I tried the following:
page link>
In the app-routing.modules.ts file:
app-routing.modules.ts
{ path: 'hero/:id', component: HeroComponent }
In the component.html file:
component.html
target="_blank" [routerLink]="['/hero', '/sachin']"