I have an app in Angular2 and I need to navigate outside of app. I Have simple view:
...
<a [routerLink]="library.url" target="_blank" (click)="goToPage(library.url)">{{library.url}}</a>
...
and I want to navigate to library.url
, I have method for navigation:
goToPage(url: string)
{
//What should be here for navigation outside?
}
Or exists another way to do that?