One page
Angular cheat sheet
What to keep at hand. If a line is not clear, go back to the matching lesson in the course.
Open the course: Angular: getting startedTemplate
| What | How |
|---|---|
| Text | {{ title }} |
| Property | [disabled]="busy" |
| Event | (click)="save()" |
| Two-way | [(ngModel)]="title" |
Building blocks
| What | How |
|---|---|
| Component | @Component({ selector, template }) |
| Service | @Injectable({ providedIn: "root" }) |
| DI | constructor(private api: UserApi) |
| HTTP | HttpClient in a service |
| List | @for (item of items; track id) |
| Route | routerLink + router-outlet |