Search code examples
javascripthtmlangularjshref

How to open the link clicked in a new tab?


In my page,I have a link on which i clicked it should open in a new tag but its not working for me.Can anyone please suggest help.So far I hadd tried the below

         <a target="_BLANK" ng-href="{{news.url}}">{{news.url}}</a>

Solution

  • Use href instead of ng-href

    <a target="_blank" href="google.co.in">google.co.in</a>