init is a predefined event sent to every component. After the component is initialized, the doInit action is called in the component’s controller. In this sample, and thecontroller action sets an attribute value, but it could do something more interesting, such as firing an event.