W3cubDocs

/Angular 10

AnimationQueryOptions

interface

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.

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/animations/AnimationQueryOptions