title: Using _blank causes page to open in current and new tab
body: <p>I'm creating a conditional target based on if the link is external or internal. I want the external links to open in a new tab, but the internal links to open in the current tab. </p>
  
  <p>this is what I have in my template: </p>
  
  <pre><code>&lt;a ng-href="{{newLink[1]}}" target="{{getLinkTarget(newLink[1])}}"&gt;{{newLink[0]}}&lt;/a&gt;
  </code></pre>
  
  <p>newLink is an array that contains the href (1) and the name (0) to be used.</p>
  
  <p>My function looks like this: </p>
  
  <pre><code>$scope.getLinkTarget = function(link){ if(link.indexOf('http') !== -1){ return '_blank';} return '_self';};
  </code></pre>
  
  <p>What am I doing wrong? After inspecting the element the link shows up like the correct target, but the _blank targets open in both tabs. </p>
  
  <p>Thanks so much. :) </p>