MCPcopy
hub / github.com/angular/angular / state

Function state

packages/animations/src/animation_metadata.ts:885–891  ·  view source on GitHub ↗
(
  name: string,
  styles: AnimationStyleMetadata,
  options?: {params: {[name: string]: any}},
)

Source from the content-addressed store, hash-verified

883 * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
884 **/
885export function state(
886 name: string,
887 styles: AnimationStyleMetadata,
888 options?: {params: {[name: string]: any}},
889): AnimationStateMetadata {
890 return {type: AnimationMetadataType.State, name, styles, options};
891}
892
893/**
894 * Defines a set of animation styles, associating each style with an optional `offset` value.

Callers 15

CmpClass · 0.90
CmpClass · 0.90
CmpClass · 0.90
SuperComponentClass · 0.90
MyComponentClass · 0.90
CompClass · 0.90
AppClass · 0.90
AnimationCompClass · 0.90
MyCompClass · 0.90
MyAnimationAppClass · 0.90
animation_spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…