ng-sweet-alert

Sweetalert directive for angular js( angular sweetalert), without writing single javascript code

Homepage

Module License: LGPL-2.1

Added by: Tushar Borole

GitHub

Repository

tushariscoolster/ng-sweet-alert

Stats

Stars: 139

Watchers: 139

Forks: 38

Module Description

Bower version npm version

ng-sweet-alert

ng-sweet-alert (angular sweetalert) is an directive for sweet alert

Getting Started

Install via bower

bower install ng-sweet-alert

Install via npm

npm install ng-sweet-alert

Add dependency in your module

angular.module('yourApp',[   'ng-sweet-alert' ]); 

Configure

<input sweetalert sweet-options="{title: 'Are you sure?',text: 'You will not be able to recover this imaginary file!',type: 'warning',showCancelButton: true,confirmButtonColor: '#DD6B55',confirmButtonText: 'Yes, delete it!',cancelButtonText: 'No, cancel plx!'}" sweet-confirm-option="{title: 'Deleted!',text: 'Your imaginary file has been deleted.',type: 'success'}" sweet-cancel-option="{title: 'Cancelled!',text: 'Your imaginary file is safe',type: 'error'}" type="submit" name="login-submit" sweet-on-cancel="checkCancel()" sweet-on-confirm="checkConfirm()" id="login-submit" tabindex="4" class="form-control btn btn-login" value="Log In">

❤ contribute ❤

I'm happy for any issue or feature request, you might encounter or want to have. Even a one liner is better, than no feedback at all. Pull requests are also highly welcome. Tell your fellow programmers, say that you use it on ng-modules, tweet or even blog about it.

(possible) future features

License

MIT

Free Software, Hell Yeah!

Module stats last updated: 2017-02-15 15:00:05

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!