What exactly $event object do in Angular 2?
$event is the event itself. The event binding (someevent) allows to bind to DOM events and to EventEmitter events. The syntax is exactly the same. For DOM events $event is the MouseEvent, KeyboardEvent, or the event value of the type of whatever event you listen to. For EventEmitter events the emitted value is available as … Read more