Suman
Suman

Reputation: 13

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

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.

Upvotes: 0

Views: 899

Answers (1)

FedG
FedG

Reputation: 1301

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

Upvotes: 1

Related Questions