import { Component, OnDestroy, ViewEncapsulation } from '@angular/core'; import { Subject } from 'rxjs'; @Component({ selector : 'empty-layout', templateUrl : './empty.component.html', encapsulation: ViewEncapsulation.None }) export class EmptyLayoutComponent implements OnDestroy { private _unsubscribeAll: Subject = new Subject(); /** * Constructor */ constructor() { } // ----------------------------------------------------------------------------------------------------- // @ Lifecycle hooks // ----------------------------------------------------------------------------------------------------- /** * On destroy */ ngOnDestroy(): void { // Unsubscribe from all subscriptions this._unsubscribeAll.next(null); this._unsubscribeAll.complete(); } }