- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
-
+ class="card-container flex w-fit flex-col gap-3 rounded-md border-2 border-black p-4">
+
@for (item of list(); track item) {
-
+
}
`,
+ styles: [
+ `
+ .card-container {
+ background: var(--bg, gray);
+ }
+ `,
+ ],
changeDetection: ChangeDetectionStrategy.Eager,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [CommonModule],
})
export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
readonly list = input