# vue-tabevents

> Easy communication between tabs for Vue 2.x

Latest version **1.2.0** (published 2018-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-tabevents
pnpm add vue-tabevents
yarn add vue-tabevents
bun add vue-tabevents
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2018-11-03 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Ali Almoullim |
| Maintainers | almoullim |
| Keywords | VueJS, events, plugin, tabs, vue |

## Links

- npm: https://www.npmjs.com/package/vue-tabevents
- Repository: https://github.com/almoullim/vue-tabevents
- Homepage: https://github.com/almoullim/vue-tabevents#readme
- Issues: https://github.com/almoullim/vue-tabevents/issues
- npm.io page: https://npm.io/package/vue-tabevents

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2018-11-03
- 1.1.0 — 2018-11-02
- 1.0.0 — 2018-11-02

## README

# vue-tabevents

[![npm](https://img.shields.io/npm/dm/vue-tabevents.svg?style=flat-square)](https://www.npmjs.com/package/vue-tabevents)
[![npm](https://img.shields.io/github/package-json/v/almoullim/vue-tabevents.svg?style=flat-square)](https://github.com/almoullim/vue-tabevents/releases)
[![npm](https://img.shields.io/github/license/almoullim/vue-tabevents.svg?style=flat-square)](https://github.com/almoullim/vue-tabevents/blob/master/LICENSE)
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/vue-tabevents/badge)](https://www.jsdelivr.com/package/npm/vue-tabevents)
[![travisci](https://img.shields.io/travis/Almoullim/vue-tabevents/master.svg?style=flat-square)](https://travis-ci.org/Almoullim/vue-tabevents)

Easy communication between tabs for Vue 2.x

![Basic Screenshot](README/images/demo.gif)

## Getting Started

### Installing

Install with npm:

```bash
npm install --save vue-tabevents
```

import into project:

```js
import Vue from 'vue';
import vueTabevents from 'vue-tabevents';

Vue.use(vueTabevents);
```

## Usage

To an emit event to other tabs

```
this.$tabEvent.emit('eventName');

const data = {
	name: 'Ali'
	phone: 123
}

this.$tabEvent.emit('eventName', data);
```

To listen for events emitted by other types

```
this.$tabEvent.on('eventName', callback);

this.$tabEvent.on('eventName', (data) => console.log(data));
```

To stop listening to an event

```
this.$tabEvent.off('eventName');
```

## Authors

-   **Ali Almoullim** - [almoullim](https://github.com/almoullim)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details

---
_Source: https://npm.io/package/vue-tabevents · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
