How to open a new browser Tab , if using router.navigate .
this.router.navigate([]).then(result => { window.location.href = link; });
Try this one.
this.router.navigate([]).then(result => { window.open(link, '_blank'); });
this will open in new tab :
this._router.navigate([]).then(result => { window.open( `/customer/edit/${customer_id_param}`, '_blank'); });
Esto deberia funcionar tambien en angular:
abrirVentana() {
var URL = 'https://stackoverflow.com/';
window.open(URL, '_blank');
}
window.open(window.location.href+"/yourRoute", '_blank');
currently i believe angular doesn't offer any method or service to do that so i've to use window
object to open links in a new tab
window.open(link, '_blank')