Рет қаралды 46,242
In this lecture, you are going to learn about custom event binding in angular. Using custon event binding, we can pass data from child component to parent component class.
To do this, we create a custom event and we bind it with @Output decorator. Then we raise the event and in parent class we create a method to handle that event.
Let's understand custom event binding with an example.