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

I want to use the infinite-scroll http://binarymuse.github.io/ngInfiniteScroll/documentation.html but it seems like I'm doing it the wrong way. How to include the module?

1
  • Arun's answer should do it. Just thought I'd add that it is an error to use the dependency notation more than once for any given module. Commented Feb 18, 2014 at 3:06

1 Answer 1

2

Add it to the original list instead of trying to declare a new module

var myapp = angular.module('myapp',['ngRoute','ui.bootstrap', 'infinite-scroll']);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.