I have an issue with changing the content of an element in Angular. i am making a tic tac toe game and I put the header every movement the player do, but I want to render in that place when the player wins. Here is the code:
<div *ngIf="_state$ | async">
<p>
Turn of {{ (_state$ | async).turn == 'PLAYERX' ? "Player 1 - Xs" : "Player 2 - 0s" }}
</p>
<p>
There is a winner {{ (_state$ | async).winner == 'X' ? "Player 1 - Xs" : "Player 2 - 0s" }}
</p>
</div>
how i can do it. To show only once no both if the player wins that show the second
and is the player is playing and is has not win the first. I can only show the first only.