I'm working to import JET web components into my typescript project and trying to create a simple onclick example.
How would I take an oj-button and add an event listener for its click event?
<body class="oj-web-applayout-body">
<div id="globalBody">
<oj-button onclick="(function() { console.log('Hello world') }) ()">Button</oj-button>
</div>
<script type="text/javascript" src="js/libs/require/require.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>