UNPKG

@ashetm/ng-broadcast-channel

Version:

``@ashetm/ng-broadcast-channel`` is a library that simplify manipulation of ``BroadcastChannel`` API.

14 lines (13 loc) 612 B
import { NgZone, OnDestroy } from '@angular/core'; import { BroadcastChannelRef } from './broadcast-channel.ref'; import * as i0 from "@angular/core"; export declare class BroadcastChannelService implements OnDestroy { private readonly _ngZone; private readonly _broadcastChannels; constructor(_ngZone: NgZone); ngOnDestroy(): void; create<T>(name: string): BroadcastChannelRef<T>; get<T>(name: string): BroadcastChannelRef<T> | null; static ɵfac: i0.ɵɵFactoryDeclaration<BroadcastChannelService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<BroadcastChannelService>; }