import { Component, OnInit, HostListener } from '@angular/core';

@Component({
  selector: 'app-what-the-fungi',
  templateUrl: './what-the-fungi.component.html',
  styleUrls: ['./what-the-fungi.component.css']
})
export class WhatTheFungiComponent implements OnInit {

  public innerHeight: any;
  public innerWidth: any;

  ngOnInit() {
    this.innerHeight = window.innerHeight;
    this.innerWidth = window.innerWidth;
  }
  constructor() { }

  @HostListener('window:resize', ['$event'])
  onResize(event) {
    this.innerHeight = window.innerHeight;
    this.innerWidth = window.innerWidth;
  }
}
