No provider for NgControl found in NodeInjector. how to get rid from this error?

518 Views Asked by At

error image

I am facing this issue, I am searching a lot but nothing works.

Please suggest to me, how to solve this.

I have added this to the application module file. import {FormsModule} from '@angular/forms' and include in import

But it is already added. Please suggest something which actually works.

1

There are 1 best solutions below

0
On BEST ANSWER

Are you using reactive forms? You have to import ReactiveFormsModule too