0
애니메이션이되고 싶지만 작동하지 않는 목록이 있습니다. 나는 angularjs 1.2.0 rc1과 rc2를 동시에 사용하고 있습니다 (테스트에는 동시에 사용하지 않습니다).AngularJS 애니메이션이 작동하지 않습니다.
<ul class="list-group">
<li class="list-group-item" ng-repeat="object in logstoreList" ng-animate="'demo'">
<a ui-sref="logstores.takelist({log : object.logstore})" ng-switch="object.subfolder">
<span ng-switch-when="true" class="badge">-</span>
<span ng-switch-default class="badge">+</span>
{{object.extname}}
</a>
</li>
</ul>
와 CSS-내용 :
.demo-enter {
-webkit-transition: all 1s linear;
transition: all 1s linear;
background: #000;
}
.demo-enter.demo-enter-active {
background: #fc3;
}
내가 뭔가를 놓치고 있습니까
여기 내 목록입니까?
클래스가 작동하고 ng-class가 작동하지 않기 때문에 이상합니다. – marcel