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

Using EventEmitter with @Output

Tags:
Using EventEmitter With @Output
In the previous post, we saw what EventEmittersare and how they are used in combination with @Output decorator to handle communicate from Child component to the Parent component. In this post, we shall see a full example of how this is implemented.

In the example, we have a ParentComponent and a ChildComponent, the child component has a button and a @Output decorator. In the buttons click event, we will trigger the emit event of the EventEmitter associated with the @Output parameter, we will also send a payload along with the emit.


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

Share the post

Using EventEmitter with @Output

×