Communicate Between Components with Outputs & EventEmitters

Sam Julien
InstructorSam Julien

Share this video with your friends

Send Tweet
Published 2 years ago
Updated 10 months ago

Sometimes we need to pass data from a child component to a parent component. We could pass the source down to the child as an input and modify it there, but that's not a good practice. In Angular, we can use Outputs and EventEmitters to accomplish this instead. The child component emits an event with the data that the parent listens for. The parent can then process the event data however it needs to. In this video, you'll learn how to do just that with a reactive form that needs to send its value up to its parent component.

Jose Hernandez
Jose Hernandez
~ 7 months ago

The course is good but I don't like how code is updated or created between chapters. A bit annoying to do guesswork when following along, an extra minute of setup at the beginning would have been preferable.

Sam Julien
Sam Julieninstructor
~ 7 months ago

Thanks for the feedback Jose -- these lessons are loosely related but are standalone videos I created over the course of several months, so not a traditional course where you're meant to follow along between each video.