Error "Can't bind to 'formGroup' since it isn't a known property of 'form'" in Angular
Hello! I'm new to Angular and TypeScript, trying to create a simple registration form. I have a component where I import FormGroup and FormControl from '@angular/forms':
```typescript
import { Component } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
@Component({
selector: 'app-register',
template: `
`
})
export class RegisterComponent {
registerForm = new FormGroup({
email: new FormControl(''),
password: new FormControl('')
});
}
```
But when I run the application, in the console
No answers yet.
Log in to leave an answer