如何打开在新标签页中点击的link?

How to open the link clicked in a new tab?

在我的页面上,我有一个 link,我点击它应该会在新标签中打开,但它对 me.Can 不起作用任何人请建议 help.So 我试过了下面

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

target="{{condition ? '_blank' : '_self'}}"应该做

你的情况是:

<a target="{{condition ? '_blank' : '_self'}}" ng-href="{{news.url}}">{{news.url}}</a>

您可以尝试 <a target="_BLANK" href="{{news.url}}">{{news.url}}</a> 而不是 ng-href

使用 href 代替 ng-href

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