UNPKG

ng-jhipster

Version:

A Jhipster util library for Angular 2

22 lines (21 loc) 560 B
import { Observable, Observer, Subscription } from 'rxjs/Rx'; /** * An utily class to manage RX events */ export declare class EventManager { observable: Observable<any>; observer: Observer<any>; constructor(); /** * Method to broadcast the event to observer */ broadcast(event: any): void; /** * Method to subscribe to an event with callback */ subscribe(eventName: any, callback: any): Subscription; /** * Method to unsubscribe the subscribion */ destroy(subscriber: Subscription): void; }