swal npm code example
Example 1: sweetalert angular 8
npm install --save sweetalert2
Example 2: sweetalert2
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
Example 3: sweetalert2 js
<link href="//cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@4/dark.css" rel="stylesheet">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.js"></script>