- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
+ class="flex w-fit flex-col gap-3 rounded-md border-2 border-black bg-[var(--background-color)] p-4"
+ [style.--background-color]="backgroundColor()">
+
@for (item of list(); track item) {
-
+
}
@@ -41,24 +31,16 @@ import { ListItemComponent } from '../list-item/list-item.component';
`,
changeDetection: ChangeDetectionStrategy.Eager,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [NgTemplateOutlet],
})
export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
readonly list = input