Constructor
# new AdmApp(config)
Create a basic adamantium app.
Parameters:
Name | Type | Description |
---|---|---|
config |
Object
|
Configuration object of adamantium app |
Methods
# component(name, Component, config) → {Promise}
Add a adamantium component.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Componentt key name |
Component |
Class
|
Class of an adamantium component |
config |
Object
|
Configuration object of a component |
A resolved promise
Promise
# async module(name, Module, config) → {Promise}
Add a adamantium module.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Module key name |
Module |
Class
|
Class of an adamantium module |
config |
Object
|
Configuration object of a module |
A resolved promise
Promise
# reload(newUrl)
Reload app
Parameters:
Name | Type | Description |
---|---|---|
newUrl |
String
|
reload new url - default current url (optional) |