17.0.0 • Published 6 months ago

@reservation-studio/ngx-event-queue v17.0.0

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Angular event queue

Reservation.Studio angular event queue library

Install

npm i @reservation-studio/ngx-event-queue

Usage

Publish event

import { NgxEventQueueService } from '@reservation-studio/ngx-event-queue';
//... 
constructor(
  private eventQueueService: NgxEventQueueService
) {}
//...
this.eventQueueService.publish('<event name>', <payload data>);

Subscribe as event listener

import { EventQueue, NgxEventQueueService } from '@reservation-studio/ngx-event-queue';
//... 
constructor(
  private eventQueueService: NgxEventQueueService
) {}
//...
this.eventQueueService
      .on('<event name>')
      .subscribe((event: EventQueue<any>) => {
        // todo somthing :)
      });
17.0.0

6 months ago

0.0.10

12 months ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago