Page component
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.
Installation
npm install spa-component-page
Usage
Add the singleton to the scope:
var page = ;
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-component-page
is released under the MIT License.