Property Binding (One Way, Top/Down)
• Only one digest cycle needed
• Child component must not modify parent component
(e. g. by using setters)
• Angular 2 checks for this in dev mode
Event Bindings (One Way, Bottom/Up)
• No digest cycle for propagating events
• But: Events can change state Updating Property Bindings
Page 9
Slide 9
Slide 9 text
Property and Event Bindings
Page 10
Performing
Property Bindings
Executing
Event Handlers
Event occurs
App is ready
All handlers executed
Properties bound
Slide 10
Slide 10 text
Two Way Binding
Page 11
Slide 11
Slide 11 text
Two Way = Property and Event Bindings
Page 12
Property + Change changed value
Slide 12
Slide 12 text
Summary
• Property Binding: One Way; Top/Down
• Event Binding: One Way; Bottom/Up
• Two Way = Property Binding + Event Binding
• Conventions for Two Way Binding
• Align to this conventions in own components
Page 13