Angular
Let's Code Together - Building a Search Form

Add ReactiveForms Module

PRO
Outline

In this video

We add the ReactiveForms module to our app module and create an empty form.

Assignment: Create the initial form
  1. Import and inject the FormGroup and FormBuilder
  2. In the component, add the FormGroup property.
  3. Initialize an empty form with no properties. Do this in its own method.
  4. Add the formGroup directive to the template.
  5. Make an onSearch method that logs to the console.
  6. Fire the onSearch method when someone clicks "Search".
 

I finished! On to the next chapter