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

16 lines
334 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()
2018-11-27 18:33:17 +01:00
export abstract class BaseService implements OnDestroy {
protected _destroyed: Subject<boolean> = new Subject();
protected constructor() { }
ngOnDestroy(): void {
this._destroyed.next(true);
this._destroyed.complete();
}
}