Skip to content

Instantly share code, notes, and snippets.

@pimatco
Created December 15, 2017 13:23
Show Gist options
  • Save pimatco/d2d7c2ee6b4b8b0421ee03040effbdcf to your computer and use it in GitHub Desktop.
Save pimatco/d2d7c2ee6b4b8b0421ee03040effbdcf to your computer and use it in GitHub Desktop.
All Event Binding Types in Angular 4
(focus)="myMethod()" // An element has received focus
(blur)="myMethod()" // An element has lost focus
(submit)="myMethod()" // A submit button has been pressed
(scroll)="myMethod()"
(cut)="myMethod()"
(copy)="myMethod()"
(paste)="myMethod()"
(keydown)="myMethod()"
(keypress)="myMethod()"
(keyup)="myMethod()"
(mouseenter)="myMethod()"
(mousedown)="myMethod()"
(mouseup)="myMethod()"
(click)="myMethod()"
(dblclick)="myMethod()"
(drag)="myMethod()"
(dragover)="myMethod()"
(drop)="myMethod()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment