Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 17
    one comment to Pengyy's answer: While using formControl, you have to import ReactiveFormsModule to your module, not rootModule. Just in case you use FormControl in your feature modules. Commented Jul 15, 2017 at 14:06
  • 1
    I have similar case and have the import for ReactiveFormsModule in my feature. The only difference is that I would like to bind to 'formControlName' instead of 'formControl'. The message has the same structure Commented Sep 14, 2017 at 14:51
  • 1
    The answers here are correct; but if anyone is still stuck (like I was) and the error says formcontrol (lowercase) rather than formControl — if you're running templates through webpack html-loader, this will help: stackoverflow.com/a/40626329/287568 Commented Jan 15, 2019 at 2:43