Form with Custom Component does not recognize control
问题 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