- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
-
+
- @for (item of list(); track item) {
-
+ @for (item of list(); let i = $index; track i) {
+
}
-
-
+
`,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [NgTemplateOutlet],
})
-export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
- readonly list = input