Skip to content
N

ngx-sweetalert2

Declarative, reactive, and template-driven SweetAlert2 integration for Angular

by sweetalert2Open source

#1244in UI Libraries
0In stores

Description

ngx-sweetalert2 is the official Angular integration for SweetAlert2, the popup dialog library. It is not a plain API wrapper: it adds Angula…

Highlights

  • swal directive for simple dialogs
  • Angular templates inside popups with swalPortal
  • Standalone components for Angular 14 and later
  • Global defaults with SweetAlert2 mixins
  • Themes from the SweetAlert2 themes package
  • Compatibility table for Angular and SweetAlert2 versions

Ratings & Reviews

No ratings yet

Be the first to rate ngx-sweetalert2.

People also visit

S

sweetalert2

A beautiful, responsive, highly customizable and accessible

UI Libraries
Launch
S

sweetalert2-react-content

Official SweetAlert2 enhancer adding support for React elements as content

UI Libraries
Launch
N

ngx-spinner

A library for loading spinner for Angular

UI Libraries
Launch
V

vue-sweetalert2

wrapper for sweatlaert2 with support for TypeScript, Nuxt and SSR

UI Libraries
Launch
A

angularx-flatpickr

An angular 17.0+ wrapper for flatpickr

UI Libraries
Launch
N

ng-apexcharts

Angular wrapper for ApexCharts to build interactive visualizations

UI Libraries
Launch

ngx-sweetalert2 FAQ

What is ngx-sweetalert2?

The official Angular integration for SweetAlert2, adding Angular-style directives and components to the popup library.

How do I start?

Install ngx-sweetalert2 and sweetalert2 together, then configure the app with providers for standalone apps, or use the NgModule approach for older apps.

Which Angular versions does it support?

Angular 14 and later for the standalone approach. The README has a compatibility table for each version range.

Can I use my own templates in a popup?

Yes. The swalPortal directive lets you use Angular templates inside a SweetAlert2 popup.

Is it free?

Yes. The project is open source, and the code is on GitHub.

What are the best ngx-sweetalert2 alternatives?

Popular alternatives to ngx-sweetalert2 include sweetalert2, sweetalert2-react-content and ngx-spinner. See all ngx-sweetalert2 alternatives

Developer Stuff

Badges