Angular2 : Can't bind to 'formGroup' since it isn't a known property of 'form'

前端 未结 7 2103
不知归路
不知归路 2020-12-17 08:50

I\'m new in angular 2 and i try to make a reactive form but i have some trouble. After many search in stack i found no solutions.

Here you can see my error

7条回答
  •  温柔的废话
    2020-12-17 09:24

    I have solved it by importing FormModule in a shared.module and importing the shared.module in all other modules. My case is the FormModule is used in multiple modules.

提交回复
热议问题