Angular-ui-bootstrap 手风琴和折叠动画不工作
Angular-ui-bootstrap accordion and collapse animation not working
在 angular-ui-bootstrap demo/docs page, the accordion and collapse 指令中,当单击一个项目时,指令都是动画的。
但是动画在该页面上的 plunker 演示中不起作用。是否缺少某些依赖项或者可能是错误?
(在 chrome / firefox 中测试)
更新:
我已于 2015 年 10 月 29 日更新到 版本 0.14.3,现在一切正常。感谢angularUI团队的辛勤工作!
bootstrap-ui 的 0.13 版本存在错误
只需改回 0.12,如下所示:
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.0.js"></script>
从版本 0.13 开始,您需要在您的应用程序中包含 ngAnimate:
bower install angular-animate --save
添加对 index.html 的脚本引用(例如 grunt wiredep
):
<script src="vendor/angular-animate/angular-animate.js"></script>
将模块引用添加到您的 Angular 应用程序,例如:
angular.module('app', ['ngCookies', 'ngRoute', 'ngSanitize', 'ngAnimate']);
在 angular-ui-bootstrap demo/docs page, the accordion and collapse 指令中,当单击一个项目时,指令都是动画的。
但是动画在该页面上的 plunker 演示中不起作用。是否缺少某些依赖项或者可能是错误?
(在 chrome / firefox 中测试)
更新:
我已于 2015 年 10 月 29 日更新到 版本 0.14.3,现在一切正常。感谢angularUI团队的辛勤工作!
bootstrap-ui 的 0.13 版本存在错误 只需改回 0.12,如下所示:
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.0.js"></script>
从版本 0.13 开始,您需要在您的应用程序中包含 ngAnimate:
bower install angular-animate --save
添加对 index.html 的脚本引用(例如
grunt wiredep
):<script src="vendor/angular-animate/angular-animate.js"></script>
将模块引用添加到您的 Angular 应用程序,例如:
angular.module('app', ['ngCookies', 'ngRoute', 'ngSanitize', 'ngAnimate']);