Angular
Let's Code Together - Refactoring Flopnames

Don't Pass currentTeam into the gamegrid Component

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

Magic Strings

In this video

We remove the currentTeam being passed into the gamegrid component

Assignment: Make currentTeam a model object
  1. Make currentTeam an object.
  2. Create a redTeam property and a blueTeam property on the component.
  3. These properties should be objects that have a displayName property that is set to "Red" or "Blue".
  4. Refactor the app where it uses the currentTeam property.
 

I finished! On to the next chapter