Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
/ vue-once Public archive

Adds an event listener that will be invoked a single time

License

Notifications You must be signed in to change notification settings

kewah/vue-once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Adds an event listener that will be invoked a single time

Resources

License

Stars

Watchers

Forks

Packages

No packages published