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>
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>
target="{{condition ? '_blank' : '_self'}}"
should do it
In your case do:
<a target="{{condition ? '_blank' : '_self'}}" ng-href="{{news.url}}">{{news.url}}</a>
You can try <a target="_BLANK" href="{{news.url}}">{{news.url}}</a>
instead of ng-href
.
Use href instead of ng-href
<a target="_blank" href="google.co.in">google.co.in</a>