import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { CommonModule } from '@angular/common'; import { PlayingCardComponent } from '../playing-card/playing-card.component'; import { Card } from '../../models/blackjack.model'; @Component({ selector: 'app-player-hand', standalone: true, imports: [CommonModule, PlayingCardComponent], template: `

Deine Karten

@if (cards.length > 0) { @for (card of cards; track card) { } } @else {
Platziere eine Wette um zu spielen...
}
`, changeDetection: ChangeDetectionStrategy.OnPush, }) export class PlayerHandComponent { @Input() cards: Card[] = []; }