title: Click button to open url in current window
body: <p>I am using Angular and tried to create a function to open url in current window. Below code in the controller actually opens new window instead:</p>
  
  <pre><code>$scope.openUrl = function(url) {
      $window.open(url);
  };
  </code></pre>
  
  <p>..when I use this <code>ng-click='openUrl("someurl")'</code></p>
  
  <p>So how to open in current window? I tried <code>ng-click='parent.open()'</code> and it doesn't work.</p>