I want to code a confirmation-box-function (opens a modal), called within a ng-click directive.
Inside this confirmation-modal i have two buttons: Cancel + Ok. A click on Cancel dismisses the modal. A click on Ok has to call the (callback)-function given through my ng-click-call (with parameters):
<button ng-click="confirmBox('beSureQuestion', functionToCallWhenOkClicked(parameter))">Delete</button>
Is there a way to give a function as parameter inside the ng-click?
I dont want to use if-statements inside my html-template.
Any suggestions?