Angular
Let's Code Together - Refactoring Flopnames

Refactor the checkForWinner method

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

In this video

We refactor the checkForWinner method.

Assignment: use class bindings for the team display
  1. Create two bindings on the text of the winner.
  2. bind to the "redtext" class which should be true when the currentTeam property is red.
  3. bind to the "bluetext" class which should be true when the currentTeam property is blue.
 

I finished! On to the next chapter