substituted @ifs and @fors with deprecated ngIf and ngFor

This commit is contained in:
Marta Borgia Leiva 2026-02-11 11:23:55 +01:00
parent 171400f9ca
commit 7202ed8806
15 changed files with 105 additions and 110 deletions

View file

@ -10,7 +10,7 @@ import { Project } from '../../models/projects.models';
standalone: true,
imports: [CommonModule, ProjectItemComponent],
templateUrl: './home.component.html',
styleUrl: './home.component.css'
styleUrl: './home.component.css',
})
export class HomeComponent {
protected authService = inject(AuthService);
@ -23,4 +23,8 @@ export class HomeComponent {
onCreateProject() {
this.router.navigate(['/projects/new']);
}
trackByProjectId(_index: number, project: Project): number {
return project.id;
}
}