angularjs中的多个模块错误

时间:2014-02-18 03:00:00

标签: javascript angularjs

var myapp = angular.module('myapp',['ngRoute','ui.bootstrap']);
var myapp = angular.module('myapp', ['infinite-scroll']);

我想使用infinite-scroll http://binarymuse.github.io/ngInfiniteScroll/documentation.html,但似乎我做错了。如何包含模块?

1 个答案:

答案 0 :(得分:2)

将其添加到原始列表,而不是尝试声明新模块

var myapp = angular.module('myapp',['ngRoute','ui.bootstrap', 'infinite-scroll']);