Class

AppController

AppController()

AppController is Ezra Bible App's main controller class which initiates all other controllers and components. It is only instantiated once and an instance is available at global.app_controller.

Constructor

# new AppController()

View Source frontend/controllers/app_controller.js, line 60

Methods

# init_component(componentClassName, componentName, componentPath)

This function is a "macro" for instantiating a component as a member of AppController.

Parameters:
Name Type Description
componentClassName String

The class name of the component

componentName String

The variable name that this component shall get within the AppController instance

componentPath String

The path to the component js file

View Source frontend/controllers/app_controller.js, line 77