Given below is the code for submit button click in ctrl.js of my angular.js application
namespace.btnClick = function {
$('#btnID').confirmation({
'onConfirm' : function () {
return true;
},'placement':right,'title' : "Alert"
});
$('#btnID').confirmation('show');
btnID is the id of the submit button. After clicking submit button for first time, it showing bootstrap Confirmation box with Yes and No button. If I click Yes button then its calling onConfirm method, after that again its calling this submit button click function for first time. If I click submit button for second time, its calling this submit button click function but it doesn't show confirmation box.