This package has been renamed to @lahautesociete/jquery-component
jQuery component template
npm install lhs-component --save
$('.ExampleComponent').component({
/**
* Bind nodes
*/
nodes: function() {
},
/**
* Bind events
*/
events: function() {
},
/**
* Initialize
*/
init: function() {
}
});
Every component is self-instanced by the lhs-component lib. It automatically runs nodes(), then events() and then init() methods. Theses methods can be removed if they are empty.