【问题标题】:Angular 2: bootstrap-sweetalert not showing popup for successAngular 2:bootstrap-sweetalert 未显示成功弹出窗口
【发布时间】:2017-08-18 16:21:08
【问题描述】:

我正在使用 npm bootstrap-sweetalert 库来显示成功的弹出窗口。

https://github.com/adeptoas/sweet-modal

admin\src\index.html

<!doctype html>
<html>

<head>
  <!--Importing the 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>

在我的 .ts 文件中:

swal("Good job!", "You clicked the button!", "success")

我的文件夹 str 是:

Project/admin/node_modules/sweet-modal/dist/js 和 css 文件

但我只是得到类似库中没有弹出和刻度动画的东西:

【问题讨论】:

    标签: javascript node.js twitter-bootstrap angular2-routing


    【解决方案1】:

    您正在混合使用 jQuery 和 Angular。你应该真的寻找一个替代的,Angular 友好的。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多