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

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

Here is my component in Angular 4:

@Component( {
    selector: \'input-extra-field\',
    template: `
            
20条回答
  •  天命终不由人
    2020-12-07 15:53

    I was facing this error while running Karma Unit Test cases Adding MatSelectModule in the imports fixes the issue

    imports: [
            HttpClientTestingModule,
            FormsModule,
            MatTableModule,
            MatSelectModule,
            NoopAnimationsModule
          ],
    

提交回复
热议问题