Skip to content

ge31/ng-sweet-alert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-sweet-alert

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

Getting Started

Install via bower

bower 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) fabulous future features

License

MIT

Free Software, Hell Yeah!

About

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

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%