Ion item make to button dynamic

Hello,

I have something like this

 <ion-item *ngFor="let person of persons">
      {{ 'NAME' | translate }}: {{ person.name}}
    </ion-item>

When the person.departmenttype is “AA” I want that the item should be clickable, should be a button.
How can I make this?

You can use ‘(tap)=’ component.

 <ion-item (tap)="YOU_FUNCTION" *ngFor="let person of persons">
      {{ 'NAME' | translate }}: {{ person.name}}
    </ion-item>