I am going crazy. I now created a new project added inappbrowser plugin in it added the plugin to config.xml created a button and put a ng-click in it.
<button ng-click="outofwrld()">hello</button>
then in my controller
$scope.outofwrld = function() {
try {
alert("1");
var loginUrl = "http://www.google.com/"
window.open(loginUrl, '_self', 'location=no,toolbar=yes');
alert("2")
} catch (err) {
alert(err);
}
}
but now the page doesnt show up but alerts are working fine without any error does this mean that the window is being opened in the background. If so how to bring it to the foreground.