Igor Monteiro
Igor Monteiro

Reputation: 953

Inject two dependecys modules in angular

I wish to inject two dependences in my module, but angular not accepts this very well , someone can help-me? i´m beginner in angular.

  var app = angular.module('aplication', ['infinite-scroll','ngAnimate']);

sequence of scripts. enter image description here

error: enter image description here

Upvotes: 1

Views: 46

Answers (2)

Igor Monteiro
Igor Monteiro

Reputation: 953

I've changed my script to:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js"></script> 

and works fine!

Upvotes: 1

Sajeetharan
Sajeetharan

Reputation: 222700

Make sure you have loaded the references,

  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-animate.js"></script>
  <script src="app.js"></script>
  <script src="infinite-scroll.js"></script>

And then,

app = angular.module('application', ['ngAnimate', 'infiniteScroll']);

Demo

Upvotes: 2

Related Questions