title: Error : Document not defined , On build angular universal app
body: <p><strong>Error :</strong></p>
  
  <pre><code>factory(require("jquery"), document, window, navigator);
                                 ^ReferenceError: document is not defined
  </code></pre>
  
  <p>Facing issue angular universal rendering server side, I have googled this and go through many posts but didn't get any helpful resource.</p>