input() and output()

input() declares an Angular component input, a value passed by the parent, as a read-only signal. output() declares an event emitted to the parent with emit(). These functions replace the @Input and @Output decorators and follow the same flow: data goes down, events go up.

Example

titre = input.required<string>();
valide = output<void>();

Related concepts

The whole glossary