简体   繁体   English

在Ionic应用程序中打开链接

[英]Open link within the Ionic app

I have a link which comes from 我有一个链接来自

<div class="list">
  <a ng-repeat="entry in entries" class="item" ng-click="browse(entry.link)">
               <b>{{entry.title}}</b><br>
               <span ng-bind-html="entry.contentSnippet"></span>
  </a>

</div>

But, as of now it has to be opened in a browser instead of the app in which the link is listed. 但是,到目前为止,它必须在浏览器中打开,而不是在列出链接的应用程序中打开。 Just wondering if there is some way to make the link open within the app itself. 只是想知道是否有某种方法可以使链接在应用程序内打开。 Thank you. 谢谢。

Try this code: 试试这个代码:

<div class="list">
  <a ng-repeat="entry in entries" class="item"
onclick="window.open('{{entry.link}}', '_system', 'location=yes'); return false;"
>
          <b>{{entry.title}}</b><br>
            <span ng-bind-html="entry.contentSnippet"></span>
  </a>

</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM