The load event handler

The load function performs initialization logic before the view loads.

Usage

The load function is the initial logic that runs as soon as the view is launched. The load method of the view is only called once during the lifecycle of the view. Use load to perform initialization such as defining variables.

Parameters

The load event handler does not take any parameters.