After changing to headless if it still doesn't works and still get exception there still a couple of other measures to consider as follows:. This means you'll need to add the "mat-label" element if you want to show some text. Validators provides a set of built-in validators ( required , minLength , maxLength ) In the html code, by the statement [value]="corporation", the corporation (from *ngFor="let corporation of corporations") is bound to [value], and the name property will get the value. Follow How can I select an element in a component template? We shouldn't have to do it this way we Example: <form [formGroup]=" Angular is a platform for building mobile and desktop web applications. Building a template-driven form. We use Angular FormBuilder to create a FormGroup object (form property) which is then bound to the template