@netsells/vue-outside-events

0.1.0 • Public • Published

npm version Build Status codecov

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>

/@netsells/vue-outside-events/

    Package Sidebar

    Install

    npm i @netsells/vue-outside-events

    Weekly Downloads

    0

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    502 kB

    Total Files

    17

    Last publish

    Collaborators

    • rebeccaanderton
    • samturrell
    • spamoom
    • jakub.gawron