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.

Revisions

  1. pimatco renamed this gist Dec 15, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. pimatco created this gist Dec 15, 2017.
    25 changes: 25 additions & 0 deletions typesofEventBindingAngular
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    (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()"