output
Initializer API
The output
function allows declaration of Angular outputs in
directives and components.
You can use outputs to emit values to parent directives and component. Parents can subscribe to changes via:
- template event bindings. For example,
(myOutput)="doSomething($event)"
- programmatic subscription by using
OutputRef#subscribe
.
API
Usage Notes
output
@returns
OutputEmitterRef<T>
Jump to details