title: angular material mat-slide-toggle inside a mat-form-field
body: <p>If I have a mat-slide-toggle inside a mat-form-field I get the error:</p>
  
  <blockquote>
    <p>Error: mat-form-field must contain a MatFormFieldControl</p>
  </blockquote>
  
  <p>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???</p>
  
  <p>Here is an example of what I currently have:</p>
  
  <pre><code>&lt;mat-form-field fxFlexFill *ngSwitchCase="'mat-slide-toggle'"&gt;
      &lt;mat-slide-toggle&gt;{{el.text}}&lt;/mat-slide-toggle&gt;
  &lt;/mat-form-field&gt;
  </code></pre>