refactor(blackjack): rename event emitters for clarity
All checks were successful
All checks were successful
This commit is contained in:
parent
5e5fe603f9
commit
03ce527087
3 changed files with 14 additions and 16 deletions
|
@ -19,16 +19,14 @@ import { CommonModule, CurrencyPipe } from '@angular/common';
|
|||
{{ currentBet | currency: 'EUR' }}
|
||||
</span>
|
||||
</div>
|
||||
<button class="button-primary w-full py-2" (click)="onNewGameClick.emit()">
|
||||
Neues Spiel
|
||||
</button>
|
||||
<button class="button-primary w-full py-2" (click)="newGame.emit()">Neues Spiel</button>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class GameInfoComponent {
|
||||
@Input() balance: number = 0;
|
||||
@Input() currentBet: number = 0;
|
||||
@Output() onNewGameClick = new EventEmitter<void>();
|
||||
@Input() balance = 0;
|
||||
@Input() currentBet = 0;
|
||||
@Output() newGame = new EventEmitter<void>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue