Angular directive to display a confirmation dialog before performing an action.