import swal from 'sweetalert2' angular 10 code example Example: sweetalert angular 8 npm install --save sweetalert2