Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

angular-sweetalert

oitozero6.2kMIT1.1.2

AngularJS wrapper for SweetAlert

angular, AngularJs, sweetalert, sweet, alert

readme

AngularJS wrapper for SweetAlert

AngularJS wrapper for SweetAlert. Sweet Alert is a beautiful replacement for Javascript's "Alert".

Demo

http://oitozero.github.io/ngSweetAlert/

Dependencies

Install

  1. download the files
    1. Bower
      1. add "angular-sweetalert": "latest" to your bower.json file then run bower install OR run bower install angular-sweetalert
  2. include the files in your app
    1. SweetAlert.min.js
    2. sweet-alert.js OR sweet-alert.min.js
    3. sweet-alert.css
  3. include the module in angular (i.e. in app.js) - oitozero.ngSweetAlert

Documentation

changelog

1.1.1

Features

  • expose showInputError and close methods from swal object

1.1.0

Features

  • update angular ~1.3.0

Improvements:

  • Replace use of $timeout with $evalAsync

1.0.4

1.0.3

Features

  • update sweetalert 0.2.0

Bug Fixes

Breaking Changes

1.0.2

Features

Bug Fixes

  • remove console.log

Breaking Changes

1.0.1

Features

Bug Fixes

  • call SweetAlert.swal inside another SweetAlert.swal(

Breaking Changes

1.0.0

Features

  • SweetAlert.swal( "title" )
  • SweetAlert.swal( "title", "message" )
  • SweetAlert.swal( "title", "message", "type" )
  • SweetAlert.swal( {options} )
  • SweetAlert.success( "title", "message" )
  • SweetAlert.warning( "title", "message" )
  • SweetAlert.error( "title", "message" )
  • SweetAlert.info( "title", "message" )

Bug Fixes

Breaking Changes