SyntaxFix
Write A Post
Hire A Developer
Questions
You can just inject it after you've set the provider:
import {provide} from 'angular2/core'; bootstrap(..., [provide(Window, {useValue: window})]); constructor(private window: Window) { // this.window }