1.1.2 • Published 7 years ago

@lahautesociete/jquery-component v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

lhs-component

jQuery component template

Install

npm install @lahautesociete/jquery-component --save

Examples

$('.ExampleComponent').component({

    /**
     * Bind nodes
     */
    nodes: function() {

    },

    /**
     * Bind events
     */
    events: function() {

    },

    /**
     * Initialize
     */
    init: function() {

    }

});

How it works

Every component is self-instanced by the lhs-component lib. It automatically runs nodes(), then events() and then init() methods. These methods can be removed if they are empty.