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