oitozero / ngSweetAlert

AngularJS wrapper for SweetAlert
MIT License
616 stars 161 forks source link

Create provider to set default values #51

Closed zokaibr closed 8 years ago

zokaibr commented 8 years ago

Creating a provider to enable the configuration os default values of SweetAlert. This provider has a function called "setDefaults" to receive an object with default values of SweetAlert and store it in a variable called "defaultSwal".

On the factory "SweetAlert", this provider is imported as a dependency and the function "setDefault" of swal is called with the variable "defaultSwal" of provider as a parameter.

zokaibr commented 8 years ago

The provider was created successfully.