Angular error-animate: angular.module (...) .info is not a function [closed]

2

I'm trying to use angular animate, but to have the error in the console just import the angular-animate.js

  

Uncaught TypeError: angular.module (...). info is not a function       at angular-animate.js: 4139       at angular-animate.js: 4155

My app file.

var app = angular.module('main', ['ui.router','ngAnimate']);

Until then I did not call any of the animate functions because of this error.

    
asked by anonymous 08.03.2017 / 18:02

2 answers

0

I had a problem similar to the angular touch. This is because angle added the method module info , which allows developers to add arbitrary information about their modules. You're probably using a version of NgAnimate that has become incompatible with your version of the angle because it does not contain this method.

As said by @Pureferret, the problem can be solved using an older version of NgAnimate .

    
13.03.2017 / 14:07
0

Personally, I had forgotten to give the bower init. Bower.json was missing. Qnd I performed, and created, I noticed that the dependency of angular on bower.json was not registered. When it was inserted, it started to work. Thank you all!

    
17.03.2017 / 17:21