• Overview
@angular/animations

query

function

Finds one or more inner elements within the current element that is being animated within a sequence. Use with animate().

  
    function query(  selector: string,  animation: AnimationMetadata | AnimationMetadata[],  options?: AnimationQueryOptions | null): AnimationQueryMetadata;
  
  

Finds one or more inner elements within the current element that is being animated within a sequence. Use with animate().

@paramselectorstring

The element to query, or a set of elements that contain Angular-specific characteristics, specified with one or more of the following tokens.

@paramanimationAnimationMetadata | AnimationMetadata[]

One or more animation steps to apply to the queried element or elements. An array is treated as an animation sequence.

@paramoptionsAnimationQueryOptions | null

An options object. Use the 'limit' field to limit the total number of items to collect.

Jump to details