【发布时间】:2014-08-27 11:35:49
【问题描述】:
我在 Angular 应用程序中使用模块时遇到问题:
我安装了async
bower install async
我将脚本添加到index.html:
<script type="text/javascript" src="js/lib/ext/async/lib/async.js"></script>
我将"async": "0.9.0" 添加到bower.json
然后,我在我的应用程序中注入了模块:
var app = angular.module('app', ['async',...])
我收到以下错误:
未捕获的错误:[$injector:modulerr] 无法实例化模块应用程序 由于:错误:[$injector:modulerr] 无法实例化模块异步 由于:错误:[$injector:nomod] 模块“异步”不可用!你 要么拼错了模块名称......1)
【问题讨论】:
标签: angularjs