Access javascript variable included in HTML header from typescript
<p>I have a javascript file included in the <code>&lt;head&gt;&lt;/head&gt;</code> tags of my Angular 2 app. I would like to access a function in that javascript file from my typescript file, how should I do that? When I'm running the app, I can type <code>var simplemde = new SimpleMDE()</code> in the browser console to get my markdown editor working, but how can I do this in the constructor in my typescript file?</p>