title: Open a new tab on button click in AngularJS
body: <pre><code>&lt;button type="button" class="btn btn-primary" ng-click="openTab()"&gt;new tab&lt;/button&gt;
  
  openTab = function () {
    $http.post('www.google.com');
  }
  </code></pre>
  
  <p>What I want is post a require and open the response html in a new tab when you click the "openTab" button. There is no method to do this with <code>$http</code>.
  I think this maybe simple, but I can't find a way.</p>