+ [ngClass]="type() === CardType.CITY ? 'bg-blue-200' : customClass()">
@if (type() === CardType.TEACHER) {
![]()
}
@if (type() === CardType.STUDENT) {
![]()
}
+ @if (type() === CardType.CITY) {
+
![]()
+ }
@for (item of list(); track item) {
}
@@ -35,11 +43,12 @@ import { ListItemComponent } from '../list-item/list-item.component';
`,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [ListItemComponent, NgOptimizedImage, NgClass],
})
export class CardComponent {
private teacherStore = inject(TeacherStore);
private studentStore = inject(StudentStore);
+ private cityStore = inject(CityStore);
readonly list = input