Fehler "mat-form-field must contain a MatFormFieldControl" in Angular Material
Hallo zusammen! Ich bin neu in Angular und Angular Material. Ich versuche, ein einfaches Formular mit einem Textfeld zu erstellen, erhalte aber in der Konsole den Fehler: "mat-form-field must contain a MatFormFieldControl".
Ich habe Angular 15 und Angular Material. Hier ist mein Komponenten-Code:
**app.component.ts:**
```typescript
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'my-form-app';
}
```
**app.component.html:**
```html
```
Ich habe MatFormFieldModule in app.module.ts importiert:
```typescript
import { MatFormFieldModule } from '@angular/material/form-field';
@NgM