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 :

enter image description here

you mixing jquery , angular. should really alternative, angular friendly.

see https://ng-bootstrap.github.io/#/components/modal/api


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -