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
2 Answers
Reset to default 7Use 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
版权声明:本文标题:javascript - Uncaught TypeError: a.customFilter is not a function with ngAnimate - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742128729a2422061.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论