Angular
Let's Code Together - Refactoring Flopnames

Toggle Key with a Visibility Style Binding

PRO

In this video

We change the key toggle to use a visibility style binding.

Assignment:
  1. In the game service create a boolean gameOver property
  2. Bind the visibility of the h2 to this new boolean variable
  3. You will need to import the service into the app component
  4. when binding to a service property in a template, the service must be public, not private when injected.
 

I finished! On to the next chapter