title: How to call scrollIntoView on an element in angular 2+
body: <p>I want to call <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView" rel="noreferrer">scrollIntoView</a> on a HTML element in a component.</p>
  
  <p>In angular.js 1 I can do something like this in the controller:</p>
  
  <pre><code>var element = $window.document.getElementById(id);
  element.scrollIntoView({ behavior: "smooth", block: "start" });
  </code></pre>
  
  <p>How can I do the same thing in angular 2+ ?</p>