Last Updated on: (senast uppdaterad på:)
Call a click event through (click) and call the function that should be initiated. Assuming I have a function in the component called showUpdateables(catName), I can have the following in the html template file:
<ng-container *ngIf="arrCats"> <span id="categoryBox" *ngFor="let cat of arrCats;" (click)="showUpdateables(cat.name)"> {{cat.name}} </span> </ng-container>