Newer Version Available
aura:valueInit
Indicates that a value has been initialized. This event is
triggered on app or component initialization.
This event is automatically fired when an app or component is initialized, prior to
rendering. The aura:valueInit event is handled by a
client-side controller. A component can have only one <aura:handler name="init"> tag to handle this event.
1<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>For an example, see Invoking Actions on Component Initialization.
The init handler contains these required attributes.| Attribute Name | Type | Description |
|---|---|---|
| name | String | The name of the handler, which must be set to init. |
| value | Object | The value that is initialized, which must be set to {!this}. |
| action | Object | The client-side controller action that handles the value change. |