$scope.openIAB = function() {
$rootScope.$on('$cordovaInAppBrowser:loadstop', function(e, event){
alert('c'); //working
$cordovaInAppBrowser.insertCSS({
code: 'body {background:blue;}'
});
});
$ionicPlatform.ready(function() {
$cordovaInAppBrowser
.open(pathToSite, '_blank', iabDefaultSettings);
});
};
something is wrong ? I failed to use .insertCSS of cordova inappbrowser plugin.