@netsells/vue-outside-events
v0.1.0
Published
[![npm version](https://badge.fury.io/js/%40netsells%2Fvue-outside-events.svg)](https://badge.fury.io/js/%40netsells%2Fvue-outside-events) [![Build Status](https://travis-ci.com/netsells/vue-outside-events.svg?branch=master)](https://travis-ci.com/netsell
Downloads
3
Keywords
Readme
Vue Outside Events
Listen to events outside of the component
Installation
yarn add @netsells/vue-outside-events
import Vue from 'vue';
import OutsideEvents from '@netsells/vue-outside-events';
// register globally
Vue.component('OutsideEvents', OutsideEvents)
// or locally
export default {
components: { OutsideEvents },
// rest of your component
}
Usage
<outside-events @click="handleOutsideClick">
Click somewhere else!
</outside-events>