OutputEmitterRef
An OutputEmitterRef
is created by the output()
function and can be
used to emit values to consumers of your directive or component.
class OutputEmitterRef<T> implements OutputRef<T> {
constructor()
subscribe(callback: (value: T) => void): OutputRefSubscription
emit(value: T): void
}
Description
Consumers of your directive/component can bind to the output and subscribe to changes via the bound event syntax. For example:
<my-comp (valueChange)="processNewValue($event)" />
Constructor
ParametersThere are no parameters. |
Methods
subscribe() | |||
---|---|---|---|
Parameters
Returns |
emit() |
---|
Emits a new value to the output. |