Outline

Exercise Goal

Display the number of true or false claims to facts using event bindings.

Tasks

  1. Open the app.component.html file
  2. Add a click event binding to the first button on line 5 to invoke the onTrue() method.
  3. Add a click event binding to the second button on line 7 to invoke the onFalse() method.

Exercise

Exercise Problem

Notes

  • The onTrue() and onFalse() methods are already defined for you in the AppComponent class. Each method increments the trueCount and falseCount property values respectively.
 

I finished! On to the next chapter