Creating FormBuilder for the register component

So far in this course, we’ve designed the registration form, but we’re yet to configure FormBuilder and validation. To implement this, we’ll follow the steps below:

Step 1: Import and inject the ReactiveFormsModule

The FormBuilder API uses ReactiveFormsModule and can’t work without it. To set up ReactiveFormsModule, we must import and inject it into our app.module.ts file.

Get hands-on with 1400+ tech skills courses.