【问题标题】:How do I redirect to an external URL in Angular JS 2 Typescript? [duplicate]如何在 Angular JS 2 Typescript 中重定向到外部 URL? [复制]
【发布时间】:2017-06-02 03:42:38
【问题描述】:

以下调用不起作用:

this.router.navigateByUrl(redirectTo); 

【问题讨论】:

    标签: angular typescript


    【解决方案1】:

    window.location.href =redirectTo

    为我工作。

    【讨论】:

      猜你喜欢
      • 2018-06-24
      • 1970-01-01
      • 2017-08-04
      • 2021-10-20
      • 1970-01-01
      • 2020-06-27
      • 2016-09-09
      • 2016-06-24
      • 1970-01-01
      相关资源
      最近更新 更多