首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ngAnimate $$animateJs不是一个函数

ngAnimate $$animateJs不是一个函数
EN

Stack Overflow用户
提问于 2016-01-25 15:45:03
回答 1查看 1.3K关注 0票数 0

再帮忙..。

我正在尝试使用ui引导程序,但是modals没有动画,所以我尝试了包含ngAnimate,但是我得到了这个错误:

代码语言:javascript
复制
TypeError: $$animateJs is not a function
    at prepareAnimation (angular-animate.js:2042)
    at initDriverFn (angular-animate.js:2032)
    at invokeFirstDriver (angular-animate.js:3070)
    at Array.triggerAnimationStart (angular-animate.js:2916)
    at nextTick (angular-animate.js:416)
    at scheduler (angular-animate.js:386)
    at angular-animate.js:2938
    at Scope.$digest (angular.js:16145)
    at Scope.$apply (angular.js:16359)
    at done (angular.js:10791)

这是我的bower.json:

代码语言:javascript
复制
{
  "name": "sb-admin",
  "version": "0.0.0",
  "appPath": "app",
  "dependencies": {
    "angular": "~1.4.9",
    "angular-resource": "~1.4.9",
    "angular-ui-router": "~0.2.16",
    "angular-bootstrap": "~1.1.0",
    "metisMenu": "~2.2.0",
    "angular-loading-bar": "~0.8.0",
    "font-awesome": "~4.5.0",
    "requirejs": "~2.1.22",
    "bootstrap": "~3.3.6",
    "oclazyload": "ocLazyLoad#~1.0.9",
    "lodash": "~4.0.1",
    "angular-smart-table": "~2.1.6",
    "angular-google-maps": "~2.3.0",
    "angular-simple-logger": "~0.1.5",
    "angular-toggle-switch": "~1.3.0",
    "angular-animate": "1.4.9"
  },
  "resolutions": {
    "angular-bootstrap": "~1.1.0",
    "angular": ">=1.2.0",
    "lodash": "~4.0.1"
  }
}

一些想法?

EN

回答 1

Stack Overflow用户

发布于 2016-01-26 12:48:26

我也遇到了同样的问题,看看我看到的文档(https://github.com/angular-ui/bootstrap):

角度要求

UI引导带1.0和更高要求角1.4.x或更高,它已经用角1.4.8测试过。

因此,我在我的"bower.json“文件中将棱角版本降到了1.4.8,现在我不再收到错误消息了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34996566

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档