如果使用router.navigate,如何打开新的浏览器选项卡。

this.router.navigate([]).then(result => { window.location.href = link; });

最佳答案

试试这个。

this.router.navigate([]).then(result => {  window.open(link, '_blank'); });

10-06 10:59