Saturday, June 9, 2018

Tap vs click event in ionic 2 | ionic 3 | ionic 4 | angular2 | angular4

Tap vs click event


If you are making mobile apps (tap) might be better. This is because when using (click) the action always executes, even when tapping accidentally. The (tap) won’t execute if the user holds it for a longer period. And if you want to have a button that needs to be clicked for a longer period of time you can use the (press).

Eg :

(tap)=”yourFunction()”

(click)=”yourFunction()”

No comments:

Post a Comment