1.5.3 • Published 4 years ago
spa-component v1.5.3
Base visual component implementation
Each component is an instance of Emitter module.
Installation
npm install spa-componentUsage
Add the singleton to the scope:
var component = require('spa-component');Show the component (hiding is identical):
// sync
component.show(someData);
// async
component.show(someData, function () {
// ready
});Development mode
There is a global var
DEVELOPwhich activates additional consistency checks and protection logic not available in release mode.
Contribution
If you have any problems or suggestions please open an issue according to the contribution rules.
License
spa-component is released under the MIT License.