I'm working on a scala application with playframework, I want to use the popover confirm in a smart-table for the delete case, The question is how to execute the delete function which is declared in angular controller on the click on yes button of the popconfirm?
<button type="button" data-toggle="tooltip" data-original-title="Remove" class="btn btn-danger popconfirm" btn-delete><i class="hi hi-remove"></i>
</button>
there is my jquery-popconfirm file : http://pastebin.com/SinHkqCi
Also I'm using this directive to call my popconfirm :
app.directive('popconfirm', function(){
return {
restrict: 'C',
link: function(scope, element){
element.popConfirm();
}
};
});