A Beautiful Way to Confirm Actions in Angular.
Generally as easy to use as this<button ng-click="someAction()" click-to-confirm>Click Me</button>
We're on Bower and recommend this action
bower install --save angular-click-to-confirm
Download the script here
Add it to any angular project
<script src="angular-click-to-confirm/dist/angular-click-to-confirm.min.js"></script>
Include the directive on any element that has an ng-click action!
Note: This must be on an element that also has an ng-click
<button ng-click="bestActionEver()" click-to-confirm>Best User Interaction... Ever</button>
You can easily add a custom message by adding a value to the directive
<button ng-click="someAction()" click-to-confirm="I'm Scared">Click Me</button>
When the button is in it's "click to confirm" state it has the class "confirm" added to the button
<button ng-click="someAction()" click-to-confirm="I'm Scared">Click Me</button>