EasterBunnyBugSmasher
EasterBunnyBugSmasher

Reputation: 1582

getting ng-animate to work

This is an ng-animate noob question. I looked at the example at angularjs.org and copied the html and css into my project. I added ngAnimate to the dependencies of my app. But it's not working. Upon (un)checking, the correct div is displayed, but no animation.

I tried adding 'ngAnimate' to the dependencies of my Controller, but then I get this error: http://errors.angularjs.org/1.2.11/$injector/unpr?p0=ngAnimateProvider%20%3C-%20ngAnimate

i notice that the example app has ng-app="ngAnimate" in the body tag, I thought adding ngAnimate to my dependencies would do the same.

Can anyone help?

here is the fiddle : enter link description here (unfortunatley angularjs not working)

var app = angular.module('my', [
  'ngAnimate',
  'my.controllers'
]);

var controllers = app.module('my.controllers', []);
controllers.controller('MyController', function($scope) {
    $scope.checked = true;
});

Upvotes: 2

Views: 581

Answers (1)

EasterBunnyBugSmasher
EasterBunnyBugSmasher

Reputation: 1582

upgrading from angularjs 1.2.11 to 1.3.0-beta7 did the trick.

Upvotes: 1

Related Questions