1.3.1 • Published 2 years ago

vue-ear v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago