admin管理员组

文章数量:1323529

I'm working on an AngularJS application, and I tried to add Angular Animate.

Angular Route didn't cause any problem, but it seems Angular Animate is not patible with something in my app.

I load the libs in this order:

<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-animate/angular-animate.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-route/angular-route.min.js"></script>

And use them in my app.js:

var app = angular.module('tictactoe', ['ngRoute', 'ngAnimate']);

I'm getting the following error. JQuery and Angular (Vanilla + Route + Animate) have been installed with npm

Dependencies versions:

I'm working on an AngularJS application, and I tried to add Angular Animate.

Angular Route didn't cause any problem, but it seems Angular Animate is not patible with something in my app.

I load the libs in this order:

<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-animate/angular-animate.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-route/angular-route.min.js"></script>

And use them in my app.js:

var app = angular.module('tictactoe', ['ngRoute', 'ngAnimate']);

I'm getting the following error. JQuery and Angular (Vanilla + Route + Animate) have been installed with npm

Dependencies versions:

Share Improve this question edited Jul 7, 2017 at 20:35 Zooly asked Jul 7, 2017 at 20:24 ZoolyZooly 4,7874 gold badges38 silver badges55 bronze badges 1
  • What versions are the packages? – Nikolaj Dam Larsen Commented Jul 7, 2017 at 20:34
Add a ment  | 

2 Answers 2

Reset to default 7

Use angular version 1.6.5 or downgrade angular-animate version to 1.6.4 It'll solve the issue. Here's a plunk of some angular app example in which this dependency condition can be verified (just change versions of libraries in cdn link)

https://plnkr.co/edit/v0cLmZvYAC8m1J7JdwHf?p=preview

Please downgrade to version angular animate 1.6.4. Here are the file you should also download it from that link. it works for me.

https://code.angularjs/1.6.4/

Also change bower.json (angular-animate/bower.json)

本文标签: javascriptUncaught TypeError acustomFilter is not a function with ngAnimateStack Overflow