Angular - Controls - Ngx-SweetAlert2

Sweetalert is one of those programs that provides popup messages. A replacement for javascreipt popup boxes like alert().

There’s actually a few products

  • SweetAlert2 - this is the original JavaScript component.
  • Ngx-sweetalert2 – this is a program that adds additional capability to sweetalert for use in an angular environment.

The additional capabilities of ngx-sweetalert include:

  • It includes a [swal] attribute which when added to a button, will cause a warning popup to occur when clicked.
  • There’s also a swal component.

You still need the sweetalert2 product, in fact you need to keep the versions in sync.

References