new (require("lib/entities/App"))(name, options)
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
options |
Object.<string, *> |
Members
-
meta :Object
-
Type:
- Object
-
modules :Object.<string, Module>
-
Modules
Type:
- Object.<string, Module>
-
name :string
-
Type:
- string
-
options :Object
-
Type:
- Object
-
<nullable> store :Store
-
Type:
- Store
Methods
-
addModule(constructorClass, name, initState, depends)
-
Add module to the app
Parameters:
Name Type Description constructorClass
function name
string module name initState
Object depends
Array.<string> Returns:
- Type
- Module
-
getDefaultOptions()
-
Get app default options
Returns:
- Type
- Object
-
getEntityType()
-
Returns:
- Type
- EntityType
-
getMetaFromOptions()
-
Get meta fields from options
Returns:
- Type
- Object
-
init()
-
Init app