Event Binding

Target event

myClick is an event on the custom ClickDirective:

{{clickMessage}}

$event and event handling statements

Result: {{currentItem.name}}

without NgModel

Binding to a nested component

Custom events with EventEmitter

Click to see event target class:

Click me (parent)
Click me too! (child)

Saves only once:

Saves twice: