In this exercise...

you will practice using two-way bindings in forms.

Directions:

In the project linked below:

  • Make the Suggestions form edit suggestions
    • Implement Two-Way binding
    • Click on a suggestion to edit
    • Don't directly edit the suggestion that is displayed - edit a copy
    • Cancel button that clears the form
    • Clear the form after saving
  • Bonus
    • If you edit the year or stars, what is the resulting stored data type?
    • How can you preserve the data type?

Click the following link to open up the exercise: https://stackblitz.com/fork/thinkster-v2qb3z-z9mebo?file=src%2Fapp%2Fflop-suggestion%2FSuggestion.ts