How to get ion-header height in Angular (the right way)?

Just read the element as an Element Ref…

@ViewChild('header') header: ElementRef

getHeaderHeight(){
  return this.header.nativeElement.offsetHeight;
}
1 Like