title: Open a new window in AngularJS
body: <p>I know this is simple and a dumb question but I can't for the life of me make this work for some reason...</p>
  
  <p>So I have a link (based on a non-angular popup using onclick):</p>
  
  <pre><code>&lt;a href="page.html" ng-click="popitup('page.html')"&gt;Page&lt;/a&gt;
  </code></pre>
  
  <p>And a function within the scope:</p>
  
  <pre><code>$scope.popitup = function(url) {
    return $window.open(url, '_blank', 'height=200,width=150');
  };
  </code></pre>
  
  <p>All I want is, when someone clicks the link, open a new window and display page.html. I have tried changing small parts of the link and the function, but I can't get it. I'm sure it's something small I am doing wrong.</p>