title: How to get the active Element (the focused one) on Angular 6?
body: <p>-- Not duplicate! Since the other questions are outdated. Not duplicate with the asked question!!!!</p>
  
  <pre><code>this.elm.nativeElement.ownerDocument.activeElement
  </code></pre>
  
  <p>also</p>
  
  <pre><code>document.activeElement
  </code></pre>
  
  <p>gives me strangely enough the whole body.How can i just get the current focused element?</p>
  
  <ul>
  <li><p>elm = type of ElementRef which is bound in my component's constructor.</p></li>
  <li><p>from another question here: this.renderer.invokeElementMethod is also not callable since Renderer is now deprecated and Renderer2 does obviously not have that method anymore.</p></li>
  </ul>
  
  <p>EDIT: This question answers this problem partially:</p>
  
  <p><a href="https://stackoverflow.com/questions/11299832/document-activeelement-returns-body">document.activeelement returns body</a></p>
  
  <blockquote>
    <p>Between leaving the old element and entering the new element the
    active element is indeed the document/body itself.</p>
  </blockquote>