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 activatedHandler
string name of the 'activated' event handler (see definition) attachedHandler
string name of the 'attached' event handler (see definition) bindingsAppliedHandler
string name of the 'bindingsApplied' event handler (see definition) deactivatedHandler
string name of the 'deactivated' event handler (see definition) detachedHandler
string name of the 'detached' event handler (see definition) disposeMethod
string name of the dispose method (see definition) initializeMethod
string name of the initialialization method (see definition) modelPath
string default Model suffix. Defaults to 'viewModels/' transitionCompletedHandler
string name of the 'transitionCompleted' event handler (see definition) viewPath
string default View path. Defaults to 'text!views/' viewSuffix
string default View suffix. Defaults to '.html'