ERROR Error: No value accessor for form control with unspecified name attribute on switch

后端 未结 20 2472
感情败类
感情败类 2020-12-07 15:33

Here is my component in Angular 4:

@Component( {
    selector: \'input-extra-field\',
    template: `
            
20条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 15:50

    In my case it was as daft as having registered the new component for DI in my app.module.ts declarations but not in exports.

提交回复
热议问题