Posted onEdited onInangular Symbols count in article: 227Reading time ≈1 mins.
The @Output decorator is used to define an output property in a component. The output property is used to emit events from the component to the parent component. The @Output decorator is used in conjunction with the EventEmitter class to emit events.
The connection between child component and parent component is established by binding the updateParentName output property of the child component to the updateName method of the parent component.