加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 未捕获错误:没有模块:ui.bootstrap

发布时间:2020-12-17 20:40:00 所属栏目:安全 来源:网络整理
导读:我试图根据 this documentation安装bootstrap到依赖项但我得到Uncaught错误:没有模块:ui.bootstrap index.html加载的文件: link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"body....script src="lib/
我试图根据 this documentation安装bootstrap到依赖项但我得到Uncaught错误:没有模块:ui.bootstrap

index.html加载的文件:

<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">

<body>
....

<script src="lib/angular/angular.js"></script>
<script src="js/app.js"></script>
<script src="js/directives.js"></script>
<script src="js/controllers.js"></script>

app.js

app = angular.module("myApp",['ngProgress','ui.bootstrap']);

文档说我需要的是:

> AngularJS(最小版本1.0.4或1.1.2)
> Bootstrap CSS

解决方法

您缺少Angular UI Bootstrap脚本本身的脚本引用.您需要下载它并引用它.

例如最新版本:https://github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-0.6.0.min.js

所有版本:https://github.com/angular-ui/bootstrap/tree/gh-pages

如您所见,角度ui.bootstrap模块在该脚本中定义.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读