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 interfaceoj.ModuleBinding.defaults.modelPath = 'models/';Properties:
Name Type Description viewPathstring default View path. Defaults to 'text!views/' viewSuffixstring default View suffix. Defaults to '.html' modelPathstring default Model suffix. Defaults to 'viewModels/' initializeMethodstring name of the initialialization method (see definition) disposeMethodstring name of the dispose method (see definition) activatedHandlerstring name of the 'activated' event handler (see definition) attachedHandlerstring name of the 'attached' event handler (see definition) detachedHandlerstring name of the 'detached' event handler (see definition) bindingsAppliedHandlerstring name of the 'bindingsApplied' event handler (see definition) deactivatedHandlerstring name of the 'deactivated' event handler (see definition) transitionCompletedHandlerstring name of the 'transitionCompleted' event handler (see definition)