If I have a mat-slide-toggle inside a mat-form-field I get the error:
Error: mat-form-field must contain a MatFormFieldControl
I want my mat-slide-toggle inside my mat-form-field so i can get the styling. Any ideas why i get this error? Is a mat-slide-toggle not a mat-form-field???
Here is an example of what I currently have:
<mat-form-field fxFlexFill *ngSwitchCase="'mat-slide-toggle'">
<mat-slide-toggle>{{el.text}}</mat-slide-toggle>
</mat-form-field>