ojModule Conventions
Fields
-
(static) defaults
-
Default configuration values ojModule binding's conventions may be overridden for the entire application after the ojs/ojmodule module is loaded. For example:
Note that the default names of the optional lifecycle methods on the ViewModel are different from their counterparts on the LifecycleListener interfaceModuleBinding.defaults.modelPath = 'models/';Properties:
Name Type Description activatedHandlerstring name of the 'activated' event handler (see definition) attachedHandlerstring name of the 'attached' event handler (see definition) bindingsAppliedHandlerstring name of the 'bindingsApplied' event handler (see definition) deactivatedHandlerstring name of the 'deactivated' event handler (see definition) detachedHandlerstring name of the 'detached' event handler (see definition) disposeMethodstring name of the dispose method (see definition) initializeMethodstring name of the initialialization method (see definition) modelPathstring default Model suffix. Defaults to 'viewModels/' transitionCompletedHandlerstring name of the 'transitionCompleted' event handler (see definition) viewPathstring default View path. Defaults to 'text!views/' viewSuffixstring default View suffix. Defaults to '.html'