AngularJS: How to animate ng-repeat on load using ng-animate

前端 未结 3 1115
遥遥无期
遥遥无期 2021-02-08 05:14

Folks!

How can I get the divs created using ng-repeat to slide down..I mean grow in size ON LOAD.

I want to achieve this using ng-animate

3条回答
  •  萌比男神i
    2021-02-08 06:17

    In order to show ng-repeat animation on page load, the target array has to be initially empty. Then assigned with values.

    Try this http://plnkr.co/edit/mRZFFX?p=preview

    This demo used $timeout to set friends value in a later time so the enter animation can be triggered.

提交回复
热议问题