@Output
An Output property is an observable property annotated with an @Output
decorator. The property almost always returns an Angular EventEmitter
. Values flow out of the component as events bound with an event binding.
Example
@Output() testEvent = new EventEmitter<any>();
Alternatively, you can identify members in the outputs array of the directive metadata, as in this example:
@Component({
outputs: ['testEvent'],
})
Options
@Output(propertyBindingName: string)
bindingPropertyName
#
bindingPropertyName?: string