The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Pass Events from Angular 2 Components with @Output

Pass Events from Angular 2 Components with @Output

3:54
Components push out events using a combination of an `@Output` and an `EventEmitter`. This allows a clean separation between reusable Components and application logic. This lesson shows how to use `@Output` to create an update event and then listen for the even in your application.
Watch this lesson now
Avatar
egghead.io

Components push out events using a combination of an @Output and an EventEmitter. This allows a clean separation between reusable Components and application logic. This lesson shows how to use @Output to create an update event and then listen for the even in your application.

Avatar
Mickey

Great exercise! I especially liked the use of the map in the update of messages, was nice to see the syntax where the values are correctly sent to the properties of the same name in the corresponding message object.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?