import {
  AfterViewInit,
  Component,
  ElementRef,
  EventEmitter,
  Output,
  ViewChild,
} from '@angular/core';

@Component({
  selector: 'app-default-layout',
  templateUrl: './default-layout.component.html',
  styleUrls: ['./default-layout.component.scss'],
})
export class DefaultLayoutComponent implements AfterViewInit {
  @Output() onContainerInit = new EventEmitter<ElementRef<HTMLDivElement>>();

  @ViewChild('containerRef') containerRef!: ElementRef<HTMLDivElement>;

  ngAfterViewInit(): void {
    this.onContainerInit.emit(this.containerRef);
  }
}
