angular-forms

ERROR Error: Cannot find control with path

匆匆过客 提交于 2020-08-07 08:18:26
问题 I'm new to Angular and tried to extend the example code from: Angular 4 Form FormArray Add a Button to add or delete a form input row If a certain option was picked in a dropdown, new options for that option should be expressable. I got to this point without problems, but implementing the formControlName Tags for those 'lower-tier-options' are throwing me an error: ContentComponent.html:56 ERROR Error: Cannot find control with path: 'inhalt -> 0 -> optionsKey'(…) the exact line in the .html

ERROR Error: Cannot find control with path

半城伤御伤魂 提交于 2020-08-07 08:17:45
问题 I'm new to Angular and tried to extend the example code from: Angular 4 Form FormArray Add a Button to add or delete a form input row If a certain option was picked in a dropdown, new options for that option should be expressable. I got to this point without problems, but implementing the formControlName Tags for those 'lower-tier-options' are throwing me an error: ContentComponent.html:56 ERROR Error: Cannot find control with path: 'inhalt -> 0 -> optionsKey'(…) the exact line in the .html

Form with Custom Component does not recognize control

隐身守侯 提交于 2020-07-30 04:06:28
问题 I am using a custom component (custom-text) which has the below code @Component({ selector: 'custom-text, [custom-text]', templateUrl: './custom-text.template.html', styleUrls: ['./custom-text.component.scss'] }) export class CustomTextComponent implements OnInit { constructor() { } ngOnInit() { } } Inside the custom-text.template.html <mat-form-field> <input matInput id="controlid" name="controlname" maxlength="8" [(ngModel)]="value"> </mat-form-field> When I include this control inside a

Form with Custom Component does not recognize control

让人想犯罪 __ 提交于 2020-07-30 04:06:22
问题 I am using a custom component (custom-text) which has the below code @Component({ selector: 'custom-text, [custom-text]', templateUrl: './custom-text.template.html', styleUrls: ['./custom-text.component.scss'] }) export class CustomTextComponent implements OnInit { constructor() { } ngOnInit() { } } Inside the custom-text.template.html <mat-form-field> <input matInput id="controlid" name="controlname" maxlength="8" [(ngModel)]="value"> </mat-form-field> When I include this control inside a