title: Angular 2 - Redirect to an external URL and open in a new tab
body: <p>I'm trying to Open a new page when user clicks on a link. I can't use Angular 2 Router, because it doesn't have any functionalities to redirect to an external URL.</p>
  
  <p>so, i'm using window.location.href="...";</p>
  
  <p>html code:</p>
  
  <pre><code>&lt;button (click)="onNavigate()"&gt;Google&lt;/tn-submenu-link&gt;
  </code></pre>
  
  <p>typescript code:</p>
  
  <pre><code>onNavigate(){
          //this.router.navigateByUrl("https://www.google.com");
          window.location.href="https://www.google.com";
      }
  </code></pre>
  
  <p>But how can I open it in a new tab? when using window.location.href ?</p>