I am calling the notification.confirm of phonegap while using angular-js.
I have code as :
ng-click= func(item)
$scope.func = function(item) {
navigator.notification.confirm('Delete?', func2(item));
}
function func2 (item) {
console.log("Ohk call");
}
I want the func2 to be called only when the user presses the confirm button on the confirm box. But what happens is that it gets called as soon as the notification appears without the click of any button. How to resolve this?