-
-
+ [style.background-color]="customClass()">
+
-
+ @for (item of list(); track item.id) {
+
+ }
`,
- imports: [NgIf, NgFor, ListItemComponent],
+ imports: [NgTemplateOutlet],
})
export class CardComponent {
- @Input() list: any[] | null = null;
- @Input() type!: CardType;
- @Input() customClass = '';
+ list = input<{ id: number }[] | null>(null);
+ customClass = input