1.3.1 • Published 1 year ago

vue-ear v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

Vue Ear

A library that makes vue events fun to use. Talk to any component from any component

Install Using Npm

npm install vue-ear

Install Using Yarn

yarn add install vue-ear

This doc is incomplete for now..

Example

import VueEar from "vue-ear";

let userEvents = new VueEar('user');
let sideBarEvents = new VueEar('sidebar');

sideBarEvents.on('hide', ()=>{
    // Hide Side Bar
})

userEvents.on('logoutWasClicked', ()=>{
    // Hide Side bar
    sideBarEvents.emit('hide');
    // or talk to sidebar from anywhere in your app.
    userEvents.talkTo('sidebar', 'hide');
})

// Triggers the user logoutWasClicked event
sideBarEvents.talkTo('user', 'logoutWasClicked');
1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago