我想在我的应用程序中使用Angularjs Bootstrap UI。在angular.js引用之后,我将这些文件包括在索引页面中:
在我的应用程序app.js
中包括以下行:
var ap = angular.module('ap', ['ngRoute','ui.bootstrap']).config(negsotimeRouter);
但是当尝试查看页面时出现此错误:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.16/$injector/modulerr?p0=negsotime&p1=Error…arjs.org%2F1.2.16%2F%24injector%2Fmodulerr%3Fp0%3Dui.bootstrap%26p1%3DErro...<omitted>...5) angular.js:36
通过以下链接
Error Link
最佳答案
您缺少对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
如您所见,Angular ui.bootstrap模块是在该脚本中定义的。