i have an html file that looks like this:
<button id="0" (click)="Check(this.id)" > I am a button </button>
and then i have a ts file with a page that has the Check function that looks like this:
alert("Button ID: " + bID);
however the alert output is “Button ID: undefined” but i want the alert to display “Button ID: 0”
It’s super simple code not much to go wrong so I’m assuming I’m having some fundamental misunderstanding of how the way Angular works or the way Ionic works and i was hoping you guys help me out.