Application core
Main module to create SPA application. It's an instance of Model module. Contains common data used by other modules, handles global events. Can be used as a common events bus.
Installation
npm install spa-app
Usage
Add the instance to the scope:
var app = ;
At run-time has the following attributes:
Name | Description |
---|---|
app.data.time | Different timestamps marks. |
Development mode
There is a global var
DEVELOP
which activates additional consistency checks and protection logic not available in release mode.
Contribution
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
License
spa-app
is released under the MIT License.