OutputRef
A reference to an Angular output.
interface OutputRef<T> {
subscribe(callback: (value: T) => void): OutputRefSubscription
}
Child interfaces
Class implementations
Methods
subscribe() | |||
---|---|---|---|
Registers a callback that is invoked whenever the output
emits a new value of type |
|||
Parameters
Returns |
|||
Angular will automatically clean up the subscription when the directive/component of the output is destroyed. |