My question is I want to create my own method to increment a number using a script tag. Everything online is telling me some old information that doesn’t apply to the newer versions of Ionic. This is my code:
`
<button type="button" onClick="onClick()">Click me</button>
<p>Clicks: <a id="clicks">0</a></p>
`
Every time I click “Click me” I get a runtime error: onClick() is not defined. Please help.
Note there is no js folder, no app.js. Kind of new to Ionic so this solution could be very simple.