argos/dmp-frontend/src/common/base/base.pipe.ts

16 lines
331 B
TypeScript
Raw Normal View History

2021-09-24 20:52:14 +02:00
import { Directive, OnDestroy } from '@angular/core';
2018-11-27 18:33:17 +01:00
import { Subject } from 'rxjs';
2021-09-24 20:52:14 +02:00
@Directive()
export abstract class BasePipe implements OnDestroy {
2018-11-27 18:33:17 +01:00
protected _destroyed: Subject<boolean> = new Subject();
protected constructor() { }
ngOnDestroy(): void {
this._destroyed.next(true);
this._destroyed.complete();
}
}