Is there a way to execute a JavaScript function from within a TypeScript module on its parent page? I have successfully used jQuery context in the past with code like:
var x = (<any>$('#ddlUsers'))
Currently, I am working on isolating some Google Analytics logic into a TypeScript module and need to call the following function:
ga('send', 'pageview');
Since Google Analytics requires specific script configurations before the closing head tag on the parent page, how can I properly make this function call from my TypeScript module?