Hi,
I’m using inAppBrowser (http://ngcordova.com/docs/plugins/inAppBrowser/) for my app. I’m using following code.
$scope.openBrowser = function() {
$cordovaInAppBrowser.open(http://example.com ', ‘_blank’, options)
.then(function(event) {
// success
})
.catch(function(event) {
// error
});
}
$rootScope.$on('$cordovaInAppBrowser:build', function(e, event){
console.log('my event');
});
$rootScope.$on(’$cordovaInAppBrowser:loadstop’, function(e, event){
$cordovaInAppBrowser.executeScript({
file: ‘script.js’ // What will be the path of this file?
});
});
Please reply asap.
Thanks
Nitin singh Solanky
nitin@techacadium.com