Issue
I want to implement multiple select on multiple items (a list of ion-item-sliding
) when one of them is pressed for few seconds by adding (press)
to each ion-item-sliding
and it seems that the press event is never fired. I moved the press event to ion-item
but nothing still happened. Then I tried to test directly the press event on a ion-button
and found out that the press event is the problem because when I change it to click it's working perfectly. Here is what I tried:
<ion-button (press)="itemPressed()">Test</ion-button>
itemPressed() {
console.log("expecting to work");
}
Solution
In addition to @Arj 1411's answer add HammerModule
in '@angular/platform-browser' imports and this should be work.
Answered By - Bary
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.