Inappbrowser issue


#1

I am trying make a button to launch inapp browser in ionic1 sidemenu project type

I add the cordova-plugin-inappbrowser after which I create a simple button :slight_smile:

<button class = "button" ng-click = "openBrowser()">OPEN BROWSER</button>

and then add controller to controller.js

.controller(‘MyCtrl’, function($scope, $cordovaInAppBrowser) {

   var options = {
      location: 'yes',
      clearcache: 'yes',
      toolbar: 'no'
   };

   $scope.openBrowser = function() {
      $cordovaInAppBrowser.open('http://ngcordova.com', '_blank', options)
		
      .then(function(event) {
         // success
      })
		
      .catch(function(event) {
         // error
      });
   }

})

but there is no activity when i click on the button