🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@lahautesociete/jquery-component

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lahautesociete/jquery-component

jQuery component template

latest
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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.

Keywords

jquery

FAQs

Package last updated on 22 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts