Base visual component implementation
Each component is an instance of Emitter module.
Installation
npm install spa-component
Usage
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
DEVELOP
which 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.