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.
npm install spa-appAdd the instance to the scope:
var app = require('spa-app');At run-time has the following attributes:
| Name | Description |
|---|---|
| app.data.time | Different timestamps marks. |
There is a global var
DEVELOPwhich activates additional consistency checks and protection logic not available in release mode.
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
spa-app is released under the MIT License.