简体   繁体   English

我停止注入ui.bootstrap时,视图停止显示

[英]views stops showing anytime i inject ui.bootstrap

After injecting ui.bootstrap into my module the application is loading a blank page without throwing any errors. 在将ui.bootstrap注入我的模块后,该应用程序正在加载空白页而不会引发任何错误。

angular.module('app',['ui.bootstrap'])

If i remove the injection the page loads fine. 如果我删除注入页面加载正常。

 angular.module('app')

I have all the necessary includes 我有所有必要的包括

<script src="assets/js/angular.min.js"></script>
<script src="assets/js/ui-bootstrap-tpls-2.5.0.min.js"></script>
<script src="assets/js/ui-router.js"></script>

注入ui.bootstrap

没有ui.bootstrap

when angular.module('app',['ui.bootstrap']) ui.bootsrap is injected this is what i get when angular.module('app') is not injected it works well 当angular.module('app',['ui.bootstrap'])ui.bootsrap被注入时,这就是我在未注入angular.module('app')时得到的结果

You haven't included the require JS file in your page. 您尚未在页面中包含require JS文件。 After angular-animate.js (before ui-bootstrap-tpls-2.5.0.js ), insert this tag angular-animate.js (在ui-bootstrap-tpls-2.5.0.js ),插入此标记

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap.js"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM