In this video
We add the ReactiveForms module to our app module and create an empty form.
Assignment: Create the initial form
- Import and inject the FormGroup and FormBuilder
- In the component, add the FormGroup property.
- Initialize an empty form with no properties. Do this in its own method.
- Add the formGroup directive to the template.
- Make an onSearch method that logs to the console.
- Fire the onSearch method when someone clicks "Search".