title: Angular CLI: How to use window, document or location in environment.ts
body: <p>Does anyone knows how to use window, document or location in an environment.ts file? I'm getting an error when compiling</p>
  
  <pre><code>ERROR in Error encountered resolving symbol values statically. Calling
  function 'window', function calls are not supported. Consider
  replacing the function or lambda with a reference to an exported
  function, resolving symbol environment in ...
  </code></pre>
  
  <p>The angular cli version I'm using is 1.0.0-beta.26</p>