I have below code in the angular component in the ionic app.
In .html=>
<ion-col *ngFor="let a of article; let i=index" size="4">
<div (click)="openArticle()">
<ion-thumbnail slot="start">
<ion-img [src] ="a.src" > </ion-img>
</ion-thumbnail>
<ion-label class="article-title">{{a.title}}</ion-label>
</div>
</ion-col>
In .ts =>
openArticle(){
console.log("test")
}
If I click on tab getting openArticle is not a function at. this function should show a console message.