ngAnimate.ngAnimateChildren (directive)

Improve this Doc View Source ngAnimateChildren

  1. directive in module ngAnimate

ngAnimateChildren allows you to specify that children of this element should animate even if any of the children's parents are currently animating. By default, when an element has an active enter, leave, or move (structural) animation, child elements that also have an active structural animation are not animated.

Note that even if ngAnimateChildren is set, no child animations will run when the parent element is removed from the DOM (leave animation).

Directive Info

  • This directive executes at priority level 0.

Usage

  • as element: (This directive can be used as custom element, but be aware of IE restrictions).
    <ng-animate-children
      ng-animate-children="string">
    ...
    </ng-animate-children>
  • as attribute:
    <ANY
      ng-animate-children="string">
    ...
    </ANY>

Arguments

Param Type Details
ngAnimateChildren string

If the value is empty, true or on, then child animations are allowed. If the value is false, child animations are not allowed.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.4/docs/api/ngAnimate/directive/ngAnimateChildren

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部