From my angular2 component, I would like to run a function in my html page.
Example:
<script>
function doAlert(){
alert("in doAlert");
}
</script>
This is needed as i am integrating my app into a html page for a third party. And i need to update them on events done in the app.
In the below, i manage to do this using window.doAlert(); is there an alternative to using window.