1.0.2 • Published 6 years ago

rxbus v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Rxbus

This is library to listen to events without any callbacks and promises

Installation

npm i rxbus -S

Subscribing to events

import * as RxBus from 'rxbus';

RxBus.subscribe("Event Name",this,function(data)=>{
    //Do Something with event
});

#Unsubscribing

import * as RxBus from 'rxbus';
RxBus.unsubscribe(this);

#Emiting Event

import * as RxBus from 'rxbus';
RxBus.push("EventName",data);
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago