Skip to content

Instantly share code, notes, and snippets.

@blakazulu
Created January 25, 2021 14:10
Show Gist options
  • Save blakazulu/3a0159cda09bfc44ffe464883229089d to your computer and use it in GitHub Desktop.
Save blakazulu/3a0159cda09bfc44ffe464883229089d to your computer and use it in GitHub Desktop.
Angular CMS
import {Subject} from 'rxjs';
export class RxjsHelper {
static destroySubject(subject$: Subject<any>): void {
if (subject$) {
subject$.next();
subject$.complete();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment