Pat*_*ick 7 javascript css twitter-bootstrap angularjs angular-ui-bootstrap
在angular-ui-bootstrap 演示/文档页面上,手风琴和折叠指令在单击项目时都是动画的.
但是,动画不适用于该页面上的plunker演示.是否缺少某些依赖性或是否可能存在错误?
(在chrome/firefox中测试过)
更新:
我在2015-10-29 更新到版本0.14.3,现在一切都很好.感谢angularUI团队的辛勤工作!
mve*_*and 23
从版本0.13开始,您需要在应用程序中包含ngAnimate:
bower install angular-animate --save添加对index.html的脚本引用(例如with grunt wiredep):
<script src="vendor/angular-animate/angular-animate.js"></script>
Run Code Online (Sandbox Code Playgroud)将模块引用添加到Angular应用程序,例如:
angular.module('app', ['ngCookies', 'ngRoute', 'ngSanitize', 'ngAnimate']);
Run Code Online (Sandbox Code Playgroud)版本0.13的bootstrap-ui上有一个错误,只需改回0.12,如下所示:
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.0.js"></script>