mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 18:05:38 +01:00
substituted @ifs and @fors with deprecated ngIf and ngFor
This commit is contained in:
parent
171400f9ca
commit
7202ed8806
15 changed files with 105 additions and 110 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue