我有这个控制器可以在我的应用程序中打开一个 InAppBrowser 窗口:
.controller('CarrinhoCtrl',function ($scope,$state,$cordovaInAppBrowser,$location) {
$scope.openURL = function () {
var ref = $cordovaInAppBrowser('https://example.com','_blank','location=yes');
}
})
当当前位置与 https://example.com/close 匹配时,如何自动关闭 InApp 窗口?