Page is the main component to build user interface, an instance of Component module.
Page is an area filling the whole screen. There can be only one active page visible at the same time.
Active/visible state of a page is managed by the router
module.
A page can contain other components.
npm install spa-component-page
Add the singleton to the scope:
var page = require('spa-component-page');
There is a global var
DEVELOP
which 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-component-page
is released under the MIT License.