0Pricing
Angular Academy · Lesson

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

  1. Signal Inputs with input()
  2. Required and Transformed Inputs
  3. Outputs with output()
  4. View Queries with viewChild
← Back to Angular Academy