angular 1.1.5 - http://plnkr.co/edit/eoKt8o4MJw9sWdYdeG3s?p=preview - WORKS
角度1.2.6 - http://plnkr.co/edit/WopgAtFNVm1mKf5Li99h?p=preview - 失败
我想我确实遵循了文档中的说明 - http://docs.angularjs.org/api/ngAnimate
•首先在HTML中包含angular-animate.js
•然后通过将模块添加为依赖模块来加载应用程序中的模块
在我的时区已经很晚了,我可能会错过一些明显的东西.我的猜测是 - 1.1.5和1.2.6之间的CSS文件不兼容?真不能说......
反正这里是代码形式调升 plunker,我包括一些意见强调的是,我也跟着从文档的说明:
<!doctype html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>Top Animation</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://code.angularjs.org/1.2.6/angular.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-animate.js"></script>
<!-- ^^^ load animate -->
</head>
<script>
var app = angular.module('app', ['ngAnimate']); // <-- dependent module
app.controller('Ctrl', function($scope) {
$scope.names = ['Igor Minar', 'Brad Green', 'Dave Geddes', 'Naomi Black', 'Greg …Run Code Online (Sandbox Code Playgroud)