vouill / vue-geb-example

Demo of global event bus usage in vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a quick example of how to use a global event bus to your advantage with vue-geb.

Why ?

I use a global event bus mainly to split my UI interaction and my application state.

Advantages

You can easily plug and play any UI lib using its own event bus.

You wont have to Add any binding or actions to your components.

Moreover you can use it with or without app state libraries.

Let's talk about code now :)

Demo

This modal can be called from anywhere by any means thanks to the global event bus.

2 implementation possibilities are shown:

The main goal of vue-geb is to make it as easy as possible to trigger Ui action.

You can call it from anywhere and emit event whenever you want :)

Enjoy !

About

Demo of global event bus usage in vue


Languages

Language:JavaScript 86.2%Language:Vue 12.0%Language:HTML 1.8%