score:1

Accepted answer

I've got the same issue,

this is how I fixed it

  public height = window.innerHeight;
  public width = window.innerWidth;

and in the ngOnInit you do your verification for the alert


Related Query

More Query from same tag