Open external links in Safari


#1

By default clicking an external link in the app opens the link in the same embedded browser that the app runs in. When this happens the user can not navigate back to the app, since next/prev buttons is not displayed in the embedded browser.

How can I catch clicks on all external links and open them in Safari?


#2

Install http://ngcordova.com.

.controller( 'FooCtrl', [ '$scope',  '$cordovaInAppBrowser', function( $scope, browser ) {
.......
    browser.open( href, '_system' );
......
};