- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
-
+
- @for (item of list(); track item) {
+
+
+
+
+ @for (item of list(); track item.id) {
+
}
@@ -35,24 +38,31 @@ import { ListItemComponent } from '../list-item/list-item.component';
`,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [ListItemComponent, NgTemplateOutlet],
})
export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
readonly list = input