Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    vue-oncepublic

    vue-once

    Vue.js directive.
    Adds an event listener that will be invoked a single time.

    Install

    With Component(1):

    $ component install kewah/vue-once

    With npm do:

    $ npm install vue-once --save

    Usage

    var Vue = require('vue');
    var vueOnce = require('vue-once');
    Vue.use(vueOnce);
    <div v-once="click: onClick"></div>

    License

    MIT

    install

    npm i vue-once

    Downloadsweekly downloads

    9

    version

    2.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar