-
Notifications
You must be signed in to change notification settings - Fork 8
Binding
Md. Shohel Rana edited this page May 6, 2018
·
2 revisions
Two different ways of binding is in terms of inputs and outputs.
- Binds Property
- Binds Attribute
- Binds CSS
- Binds Style Property
- Binds a Property to an Interpolated String,
- Sets up two-way Data Binding
The following list shows all type of event binding.
(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()"
- Creates a Local Variable
- The * Symbol
- The Safe Navigation Operator