<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. |