var myapp = angular.module('myapp',['ngRoute','ui.bootstrap']);
var myapp = angular.module('myapp', ['infinite-scroll']);
我想使用无限滚动
http://binarymuse.github.io/ngInfiniteScroll/documentation.html但似乎我的做法是错误的。如何包含该模块?
最佳答案
将其添加到原始列表中,而不是尝试声明新模块
var myapp = angular.module('myapp',['ngRoute','ui.bootstrap', 'infinite-scroll']);
关于javascript - AngularJS 中的多个模块错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21843512/