{ "id": "api/animations/AnimationQueryOptions", "title": "AnimationQueryOptions", "contents": "\n\n
\n
\n
\n \n API > @angular/animations\n
\n \n
\n \n
\n

AnimationQueryOptionslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Encapsulates animation query options.\nPassed to the query() function.

\n\n \n
\n \n \n
\n\ninterface AnimationQueryOptions extends AnimationOptions {\n optional?: boolean\n limit?: number\n\n // inherited from animations/AnimationOptions\n delay?: number | string\n params?: {...}\n}\n\n\n \n \n\n\n \n \n\n
\n\n \n\n \n \n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n optional?: boolean\n \n \n

True if this query is optional, false if it is required. Default is false.\nA required query throws an error if no elements are retrieved when\nthe query is executed. An optional query does not.

\n\n \n
\n \n limit?: number\n \n \n

A maximum total number of results to return from the query.\nIf negative, results are limited from the end of the query list towards the beginning.\nBy default, results are not limited.

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }