[AAE-10778] Implement missing oninit, onchanges and ondestroy

This commit is contained in:
Amedeo Lepore
2022-12-15 17:52:28 +01:00
parent 5b5b26f5cb
commit 467143102e

View File

@@ -23,6 +23,9 @@ import {
EventEmitter,
HostListener,
Input,
OnChanges,
OnDestroy,
OnInit,
Output,
TemplateRef,
ViewEncapsulation
@@ -62,7 +65,7 @@ import { filter, skipWhile, takeUntil } from 'rxjs/operators';
encapsulation: ViewEncapsulation.None,
providers: [ViewUtilService]
})
export class AlfrescoViewerComponent {
export class AlfrescoViewerComponent implements OnChanges, OnInit, OnDestroy {
@ContentChild(ViewerToolbarComponent)
toolbar: ViewerToolbarComponent;
@@ -513,4 +516,9 @@ export class AlfrescoViewerComponent {
}
}
ngOnDestroy() {
this.onDestroy$.next(true);
this.onDestroy$.complete();
}
}