比较来自世界各地的卖家的域名和 IT 服务价格

错误: [$injector:nomod] 模块 'ui.bootstrap' 无法使用! 你要么错了写道 [...]

我在这里有这个问题,我仍然没有收到任何一致的决定,看起来。 我推出了项目 Java 从 Angular 在界面上,尝试使用自动完成功能 ui-bootstrap, 但我总是得到这个错误。


Uncaught Error: [$injector:modulerr] Failed to instantiate module textChangrApp due to: Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap due to: Error: [$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. [url=http://errors.angularjs.org/1.3.0-rc.4/]http://errors.angularjs.org/1.3.0-rc.4/[/url]$injector/nomod?p0=ui.bootstrap
at [url=http://localhost:8080/bower_components/angular/angular.js:80:12]http://localhost:8080/bower_co ... 80:12[/url]
at [url=http://localhost:8080/bower_components/angular/angular.js:1787:17]http://localhost:8080/bower_co ... 87:17[/url]
at ensure /[url=http://localhost:8080/bower_components/angular/angular.js:1711:38/]http://localhost:8080/bower_co ... 1:38/[/url]
at module /[url=http://localhost:8080/bower_components/angular/angular.js:1785:14/]http://localhost:8080/bower_co ... 5:14/[/url]
at [url=http://localhost:8080/bower_components/angular/angular.js:4024:22]http://localhost:8080/bower_co ... 24:22[/url]
at forEach /[url=http://localhost:8080/bower_components/angular/angular.js:330:20/]http://localhost:8080/bower_co ... 0:20/[/url]
at loadModules /[url=http://localhost:8080/bower_components/angular/angular.js:4008:5/]http://localhost:8080/bower_co ... 08:5/[/url]
at [url=http://localhost:8080/bower_components/angular/angular.js:4025:40]http://localhost:8080/bower_co ... 25:40[/url]
at forEach /[url=http://localhost:8080/bower_components/angular/angular.js:330:20/]http://localhost:8080/bower_co ... 0:20/[/url]
at loadModules /[url=http://localhost:8080/bower_components/angular/angular.js:4008:5/]http://localhost:8080/bower_co ... 08:5/[/url] [url=http://errors.angularjs.org/1.3.0-rc.4/]http://errors.angularjs.org/1.3.0-rc.4/[/url]$injector/modulerr?p0=ui.bootstrap&p…2F%2Flocalhost%3A8080%2Fbower_components%2Fangular%2Fangular.js%3A4008%3A5/
at [url=http://localhost:8080/bower_components/angular/angular.js:80:12]http://localhost:8080/bower_co ... 80:12[/url]
at [url=http://localhost:8080/bower_components/angular/angular.js:4047:15]http://localhost:8080/bower_co ... 47:15[/url]
at forEach /[url=http://localhost:8080/bower_components/angular/angular.js:330:20/]http://localhost:8080/bower_co ... 0:20/[/url]
at loadModules /[url=http://localhost:8080/bower_components/angular/angular.js:4008:5/]http://localhost:8080/bower_co ... 08:5/[/url]
at [url=http://localhost:8080/bower_components/angular/angular.js:4025:40]http://localhost:8080/bower_co ... 25:40[/url]
at forEach /[url=http://localhost:8080/bower_components/angular/angular.js:330:20/]http://localhost:8080/bower_co ... 0:20/[/url]
at loadModules /[url=http://localhost:8080/bower_components/angular/angular.js:4008:5/]http://localhost:8080/bower_co ... 08:5/[/url]
at createInjector /[url=http://localhost:8080/bower_components/angular/angular.js:3948:11/]http://localhost:8080/bower_co ... 8:11/[/url]
at doBootstrap /[url=http://localhost:8080/bower_components/angular/angular.js:1480:20/]http://localhost:8080/bower_co ... 0:20/[/url]
at bootstrap /[url=http://localhost:8080/bower_components/angular/angular.js:1501:12/]http://localhost:8080/bower_co ... 1:12/[/url] [url=http://errors.angularjs.org/1.3.0-rc.4/]http://errors.angularjs.org/1.3.0-rc.4/[/url]$injector/modulerr?p0=textChangrApp&…F%2Flocalhost%3A8080%2Fbower_components%2Fangular%2Fangular.js%3A1501%3A12/ angular.js:80/anonymous function/ angular.js:80/anonymous function/ angular.js:4047forEach angular.js:330loadModules angular.js:4008createInjector angular.js:3948doBootstrap angular.js:1480bootstrap angular.js:1501angularInit angular.js:1395/anonymous function/ angular.js:24904trigger angular.js:2715eventHandler angular.js:2986



//index.html
<head>
<!-- ... -->
<script src="../bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../bower_components/angular-aria/angular-aria.js"></script>
<script src="../bower_components/angular-animate/angular-animate.js"></script>
<script src="../bower_components/hammerjs/hammer.js"></script>
<script src="../bower_components/angular-material/angular-material.js"></script>
</head>
//app.js
angular
.module/ 'textChangrApp', [ 'ngAnimate', 'ngMaterial','directive.g+signin', 'ui.bootstrap']/


我觉得我的问题必须有问题
<head>

导入时,因为它仍然工作正常,现在崩溃。 我希望你能帮助我一点。

谢。
</head>
已邀请:

龙天

赞同来自:

您必须下载模块 ui.boostrap



文件 angularjs.

江南孤鹜

赞同来自:

另一种建立它的方法 bower 以下是说明。

添加以下内容 2 包装B. bower.json 在您的目录中。


"bootstrap": "*",
"angular-bootstrap": "*",


https://i.stack.imgur.com/mG2xJ.png
发射
bower update

来自您的目录

添加模块
ui.bootstrap

到 angular, 如下所示。

https://i.stack.imgur.com/Z9rf1.png
把它花在视线上 bootsrap 工作

CSS


<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>


JS


<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>

詹大官人

赞同来自:

之后必须启用以下内容 angular.min....


<script src="..//ui-bootstrap-custom-tpls-0.12.0.min.js" type="text/javascript"></script>

要回复问题请先登录注册