$injector:modulerr using angular-strap?

倖福魔咒の 提交于 2019-12-01 03:46:44

问题


I am trying to get going with angular-strap directives, but encountering a module initialization error with the simplest setup. I have double checked a zillion times but can't see exactly what I might be missing.

Here is a plunker link: http://plnkr.co/edit/H1VrF63GeSQWLXHDVIW7

The error I get is:

Error: [$injector:modulerr] Failed to instantiate module mgcrea.ngStrap due to:
Error: [$injector:nomod] Module 'mgcrea.ngStrap' is not available! You either misspe...  <omitted>...1) 

I read this response, but it didn't answer my question as I am not using ngSanitize or routes. This is as simple as it gets.

Thanks


回答1:


Your plunk needs angular-animate, which angular-strap depends on.

http://plnkr.co/hsqT3FLEjXwdnXrxn4hx

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular-animate.min.js"></script>


来源:https://stackoverflow.com/questions/22334332/injectormodulerr-using-angular-strap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!