FrontEnd/Angular

Event Binding의 종류

철철22 2018. 6. 13. 22:40
반응형

Angular의 대표적인 이벤트 바인딩의 종류들


( https://developer.mozilla.org/en-US/docs/Web/Events )



(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()"

(change) = "changemonths($event)"


반응형