Required and Transformed Inputs
Mark inputs required and transform values.
Beyond Basic Inputs
Signal inputs support two powerful features: marking an input as required and transforming incoming values before they are stored.
Required Inputs
Use input.required() when the parent must always provide a value. There is no default.
import { input } from "@angular/core";
export class UserComponent {
userId = input.required<string>();
}All lessons in this course
- Signal Inputs with input()
- Required and Transformed Inputs
- Outputs with output()
- View Queries with viewChild