title: How to inject window into a service?
body: <p>I'm writing an Angular 2 service in TypeScript that will make use of <code>localstorage</code>. I want to inject a reference to the browser <code>window</code> object into my service since I don't want to reference any global variables like Angular 1.x <code>$window</code>.</p>
  
  <p>How do I do that?</p>