• Overview
@angular/animations

query

function
deprecatedsince v20.2

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

Deprecation warning

Use animate.enter or animate.leave instead. Intent to remove in v23

API

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

Usage Notes

Multiple Tokens

Tokens can be merged into a combined query selector string. For example:

 query(':self, .record:enter, .record:leave,
Jump to details