Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What are EventEmitters?

Angular applications are made using Components, most often we will have to arrange the components in a hierarchy (parent/child components). We will have to Pass Values from the parent to child components and from the child to parent component to make the App functional.

To pass values from a parent component to a child component we use the @Input property/decorator.
To pass values from a child component to a parent component we need to emit an event using @Output and EventEmitter. Both are parts of the @angular/core.


This post first appeared on C# Guide, please read the originial post: here

Share the post

What are EventEmitters?

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×