Angular 22 · Components and templates
Bind a form field in both directions
Keep a signal in sync with an input. Needs FormsModule.
<input [(ngModel)]="name">
Official Angular 22 documentation
More components and templates commands
- Write a standalone component
- Pass data in and out
- Show content conditionally
- Loop over items
- Handle an event
- Bind a property
All components and templates commands · Angular 22 cheatsheet