Angular 5: “No provider for ControlContainer”

前端 未结 12 1181
独厮守ぢ
独厮守ぢ 2020-12-14 14:50

I have a little web app with Angular 5 and out of a sudden I am getting this strange error message in my browser console:

ncaught Error: Template parse error         


        
12条回答
  •  不思量自难忘°
    2020-12-14 15:06

    I was able to resolve this with two changes.

    1) I had my component in its own module. I had to import THAT specific module into the app.module. That got me half way to the solution.

    2) I also had some fields whose values were generated in the component and being displayed in the form group. Once I took those out of the form group and put them in a separate div, then I was set to go.

提交回复
热议问题