ng-really

Modals and alerts are annoying. Opt for a simpler, more discreet and yet just as safe system: action button that morphs into a confirmation button.

Simple usage

<button type="button" class="btn btn-danger" ng-really ng-really-confirm-label="Really?" ng-really-confirmed-action="confirmedAction()">Delete</button>

Results


With a timeout

<button type="button" class="btn btn-danger" ng-really ng-really-confirm-label="Really?" ng-really-confirmed-action="confirmedAction()" ng-really-timeout="1000">Delete</button>

Results


With icons

<button type="button" class="btn btn-danger" ng-really ng-really-confirm-label="'<span class=\'glyphicon glyphicon-question-sign\'></span>'" ng-really-confirmed-action="confirmedAction()"><span class="glyphicon glyphicon-trash pointer"></span></button>

Results