title: How to get clientHeight in Angular?
body: <p>I tried to get client height when I scroll page:</p>
  
  <pre><code>@HostListener('window:scroll', ['$event']) onScrollEvent($event) {
     if ($event.scrollHeight - $event.scrollTop === $event.clientHeight) {
      console.log('scrolled to the end');
    }
  });
  </code></pre>
  
  <p>I need to detect if user scrolled to the end of page</p>