TypeScript-'s Angular Framework Error - “There is no directive with exportAs set to ngForm”

前端 未结 22 1689
轻奢々
轻奢々 2020-12-04 09:18

I keep getting this error while using TypeScript\'s Angular2-forms framework:

There is no directive with \"exportAs\" set to \"ngForm

22条回答
  •  庸人自扰
    2020-12-04 09:46

    I faced this issue, but none of the answers here worked for me. I googled and found that FormsModule not shared with Feature Modules

    So If your form is in a featured module, then you have to import and add the FromsModule there.

    Please ref: https://github.com/angular/angular/issues/11365

提交回复
热议问题