Angular
Let's Code Together - Refactoring Flopnames

Refactor the checkForWinner method

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