title: Angular Universal Microsoft Edge and Document Injection Problem
body: <p>We have a page scroll component as shared one. We are using document.scrollHeight in order to adjust where it needs to jump. It perfectly works when using it in Chrome and Firefox(decent versions). But it does not work on Microsoft Edge Browser.</p>
  
  <pre><code>import { Component, Inject, PLATFORM_ID } from '@angular/core';
  import { isPlatformBrowser, DOCUMENT } from '@angular/common';
  
          export class PageScrollerComponent {
            constructor(@Inject(PLATFORM_ID) private platformId: Object,
                        @Inject(DOCUMENT) private document: any) {  
                  if (isPlatformBrowser(this.platformId)) { 
                         console.log(this.document);
                         this.scrollto(this.document,400);
                        }
                  scrollTo(el, lineNum){
                        el.scroll(0, lineNum)
                  }
              }
  </code></pre>
  
  <p>for some reason, in Microsoft Edge, it says document is undefined. It prints to console </p>
  
  <blockquote>
    <p>undefined</p>
  </blockquote>
  
  <p>also. Please help.</p>
  
  <p>Thanks.</p>