Open link within the Ionic app


#1

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.


#2

Hi,:slight_smile:
Use inappbrowser plugin
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser

And in the inappbrowser option … give location = no


#3

While inside project folder, I use the following command on CLI

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

Where can I find inappbrowser settings ?

Thanks for the help :slight_smile:


#4

Below is an example … Give option ‘location=yes’ / ‘no’
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');