title: Server Side Rendering Angular 4/5 Issue
body: <p>I am working on angular 5. I am done with my app and created a build and deployed on the server and it works fine.<br>
  But I have issue with Search Engine Optimization that pages are not indexed in google. I used Server Side Rendering and have the below error:</p>
  
  <pre><code>F:\universal-demo-v5&gt;node dist/server.js F:\universal-demo-v5\dist\server.js:111436 })(window, document, 'Hammer');    ^ ReferenceError: window is not defined
      at Object.defineProperty.value (F:\universal-demo-v5\dist\server.js:111436:4)
      at __webpack_require__ (F:\universal-demo-v5\dist\server.js:20:30)
      at Object.hammerjs (F:\universal-demo-v5\dist\server.js:139493:18)
      at __webpack_require__ (F:\universal-demo-v5\dist\server.js:128177:30)
      at Object.../../../../ngx-carousel/src/ngx-carousel/ngx-carousel.component.js (F:\universal-demo-v5\dist\server.js:138668:67)
      at __webpack_require__ (F:\universal-demo-v5\dist\server.js:128177:30)
      at Object.../../../../ngx-carousel/src/ngx-carousel/ngx-carousel.component.ngfactory.js (F:\universal-demo-v5\dist\server.js:139254:10)
      at __webpack_require__ (F:\universal-demo-v5\dist\server.js:128177:30)
      at Object.../../../../../src/app/components/home/home.component.ngfactory.js (F:\universal-demo-v5\dist\server.js:129216:11)
      at __webpack_require__ (F:\universal-demo-v5\dist\server.js:128177:30)
  </code></pre>