I am facing an issue where my onclick event is not working on an ion-col. The error message says that the method I call "is not defined at html element.onclick". Here is a snippet of my code:
<ion-row style="width:100%; height:6%; border: 1px solid #36B729; position:absolute; top:51.5%;">
<!-- Wall Tab -->
<ion-col id="WallTab" style="height:100%; border: 1px solid #36B729" align="center" onClick="TabManagement(this.id)">
<font id="WallTab" style="color: #36B729; font-size: 70%">Wall</font>
</ion-col>
<!-- Happy Customers Tab -->
<ion-col id="HappyCustomersTab" style="height:100%; border: 1px solid #36B729" align="center" onClick="TabManagement(this.id)">
<font id="HappyCustomersTab" style="color: white; font-size: 70%">Happy Customers</font>
</ion-col>
<!-- Reports Tab -->
<ion-col id="UnhappyCustomersTab" style="height:100%; border: 1px solid #36B729" align="center" onClick="GoBack();">
<font id="UnhappyCustomersTab" style="color: white; font-size: 70%">Unhappy Customers</font>
</ion-col>
</ion-row>
Here is how my ts file looks like:
public class profile{
TabManagement(){
code...
} }