<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script> code example Example: sweetalert angular 8 npm install --save sweetalert2