Angular 22 · Components and templates
Handle an event
Call a method when the user clicks.
<button (click)="save()">Save</button>
Official Angular 22 documentation
More components and templates commands
- Write a standalone component
- Pass data in and out
- Show content conditionally
- Loop over items
- Bind a property
- Toggle a CSS class
All components and templates commands · Angular 22 cheatsheet