LifecycleHooks enum

Lifecycle hooks are guaranteed to be called in the following order:

  • afterChanges (if any bindings have been changed by the Angular framework),
  • onInit (after the first check only),
  • doCheck,
  • afterContentInit,
  • afterContentChecked,
  • afterViewInit,
  • afterViewChecked,
  • onDestroy (at the very end before destruction)
Inheritance

Constructors

LifecycleHooks()
const

Values

onInit → const LifecycleHooks
onDestroy → const LifecycleHooks
doCheck → const LifecycleHooks
afterChanges → const LifecycleHooks
afterContentInit → const LifecycleHooks
afterContentChecked → const LifecycleHooks
afterViewInit → const LifecycleHooks
afterViewChecked → const LifecycleHooks

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<LifecycleHooks>
A constant List of the values in this enum, in order of their declaration.