Creating Inline Javascript in Ionic2 and Typescript

If you get my question really well, I am trying to place an ‘inline’ Javascript. So something in the likes of:
<ion-content padding class="home">
<button block>Button text</button>

<script type="text/javascript>
//Inline-javascript here
</script>
</ion-content>
Is it possible? Especially in the new Ionic and Typescript

2 Likes