AngularJS directive for click confirmation using modal dialog