Sweetalert + Angular — EASY

SweetAlert is a sweet upgrade to a regular browser alert. You can check it out here. There are a few simple libraries to make Angular work with Sweetalert. If you really want to check them out:
- https://github.com/leftstick/angular-sweetalert
- https://github.com/oitozero/ngSweetAlert

But with Javascript, dependencies can easily go out of hand if not managed properly. So if you every find yourself with an opportunity to avoid using a library, I feel you should take it!

Here is a simple module that you can write around Sweetalert, to make things work.

Usage

This way you don’t need to depend on an external Javascript dependency for something this simple. Hope it helps.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.