concept InAppBrowser plugin in category cordova

This is an excerpt from Manning's book Apache Cordova in Action.
The next change is to let users read RSS entries on the website itself. Currently you render the entry within an Ionic template. This is okay but may not look as good as the content on the website. Also, some RSS feeds only contain partial text. They want to “tease” people essentially into coming to the website to read the full entry. Luckily there’s a cool way to load HTML content in a Cordova application. You can use the InAppBrowser plugin to create a popup web browser to render a page. This popup will include a simple Close button that then returns the user to the app, as shown in figure 12.13.
You begin by adding a simple footer to the template
. This footer will be persistent as the user scrolls through the content. Inside the footer are two buttons. The first is the one you care about now—it will fire off a request to use the InAppBrowser plugin
. The second
is for the SocialSharing plugin to be discussed next.
Using the InAppBrowser plugin requires an incredibly small change to the EntryController. Add the block from the following listing immediately after the EntryCtrl block begins.
. This footer will be persistent as the user scrolls through the content. Inside the footer are two buttons. The first is the one you care about now—it will fire off a request to use the InAppBrowser plugin
. The second
is for the SocialSharing plugin to be discussed next.