javascript - Angular 2: bootstrap-sweetalert not showing popup for success -
im using npm bootstrap-sweetalert library displaying popup success.
https://github.com/adeptoas/sweet-modal
admin\src\index.html
<!doctype html> <html> <head> <!--importing library here!!--> <link rel="stylesheet" href="../node_modules/sweet-modal/dist/min/jquery.sweet-modal.min.css" /> <script src="../node_modules/sweet-modal/dist/min/jquery.sweet-modal.min.js"></script> </head>
in .ts file:
swal("good job!", "you clicked button!", "success")
my folder str :
project/admin/node_modules/sweet-modal/dist/the js , css files
but there no popup , tick animation shown in library :
you mixing jquery , angular. should really alternative, angular friendly.
Comments
Post a Comment