# Angular | Directives | ngModel error

**URL:** <https://forum.codewithmosh.com/t/angular-directives-ngmodel-error/4829>\
**Category:** Angular\
**Created:** [May 11, 2021, 9:07am UTC](https://forum.codewithmosh.com/t/angular-directives-ngmodel-error/4829 "2021-05-11T09:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kishore](https://forum.codewithmosh.com/u/kishore)\
**Post date:** [May 11, 2021, 9:07am UTC](https://forum.codewithmosh.com/t/angular-directives-ngmodel-error/4829/1 "2021-05-11T09:07:19Z")

</div>

I have tried to create a contact form with the input field having ngModel directive, but when tried to log the instance of form control class, that shows me an error as " NG8003: No directive found with export As ‘ngModel’ ".

---

<div class="post-metadata">

**Author:** ![vi\_t](https://avatars.discourse-cdn.com/v4/letter/v/b9bd4f/32.png) [@vi\_t](https://forum.codewithmosh.com/u/vi_t)\
**Post date:** [August 1, 2023, 11:44am UTC](https://forum.codewithmosh.com/t/angular-directives-ngmodel-error/4829/2 "2023-08-01T11:44:52Z")

</div>

@kishore  
I had the same error and to fix it, I just added to app.module.ts in the imports arr the FormsModule and imported it.
