Boas Enkler
Boas Enkler

Reputation: 12557

Anuglar-animate. 1.2.9 uncaught object

I've an running an web application with angular.js (1.2.9)

i want to extend it with some animation stuff.

For this i i referenced the ng-animate js-file:

 <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
    <script src="https://code.angularjs.org/1.2.9/angular.js"></script>
    <script src="https://code.angularjs.org/1.2.9/angular-animate.js"></script>
    <script src="~/Scripts/ng/restangular.js"></script>

and I extended my module creation with ng-animate

var crApp = angular.module('crApp', ['ng-animate','restangular', 'ui.bootstrap', 'ui.router'])

but from then on i got a "uncaught object" error without changing anything else.

Screenshot

For me this looks like the ng-animate module could not be resolved.

What am I doing wrong?

Upvotes: 0

Views: 110

Answers (1)

possiblyLethal
possiblyLethal

Reputation: 191

Try

var crApp = angular.module('crApp', ['ngAnimate','restangular', 'ui.bootstrap', 'ui.router'])

Edit: The problem for the author was that he spelled 'ngAnimate' incorrectly, and thus the module could not be loaded.

Upvotes: 1

Related Questions