How to get a reference to the current element in Angular 2?

Discussão em 'Angular' iniciado por Kin, Novembro 15, 2024.

  1. Kin

    Kin Guest

    For example, I have a function itemDragged(). How, inside that function, to get a reference of ion-item-sliding to get its current class attribute?

    <ion-item-sliding *ngFor="let activity of activities" (click)="showModalInfo(activity)" (ionDrag)="itemDragged($event)">

    Continue reading...

Compartilhe esta Página