I'm facing an issue.
I've a button in angular like this :
<button ng-click = "makeRestCall()">
</button>
This is what the Javascript code looks like :
$scope.makeRestCall = function() {
console.log('Logic to make rest call...');
};
Now the issue is when I click the button, instead of it directly making the REST call through JS, I want it to display a pop-up for confirmation. If yes, then the function is called, else no.
Can someone help?