Angular 2 Typescript Setting a global property on the window object
<p>So I'm kinda new to Angular 2. Want to set up a global namespace by saying something like window.Dashboard. I have my main page loading and my jasmine tests loading, but my compiler watch keeps quitting and complaining saying "Property 'Dashboard' does not exist on type ‘Window'. Here is a pastebin. Anyone got any ideas on what im doing wrong? <a href="http://pastebin.com/DF9wXexH" rel="nofollow">http://pastebin.com/DF9wXexH</a> Thanks!!</p>

<pre><code>//main.ts
import { bootstrap } from 'angular2/platform/browser';

import { DashComponent } from './dash.component';


bootstrap(DashComponent);

//dash.component.ts

import { Component } from 'angular2/core';

interface Window {
    Dashboard?: any;
}

@Component({
    selector: 'main',
    template: '&lt;h1&gt;Welcome To The Dashboard&lt;/h1&gt;'
})

export class DashComponent {
    constructor() {}
}
</code></pre>