Created
November 16, 2021 07:54
-
-
Save nivrith/dd02065ce7b00d61fc21cb991a656970 to your computer and use it in GitHub Desktop.
Bind Single and Double Click events in Angular without bubbling issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In some angular template bind to events `click.single` and `click.double` | |
<div (click.single)="onSingleClick($event)" (click.double)="onDoubleClick(event)"> | |
I got 99 problems but the click ain't one | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment