Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

AnimationQueryOptions

Encapsulates animation query options. Passed to the query() function.

      
      interface AnimationQueryOptions extends AnimationOptions {
  optional?: boolean
  limit?: number

  // inherited from animations/AnimationOptions
  delay?: number | string
  params?: {...}
}
    

Properties

Property Description
optional?: boolean

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

limit?: number

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