title: angular 4 md input container
body: <p>I'm using dynamics form with angular(<a href="https://angular.io/guide/dynamic-form" rel="nofollow noreferrer">https://angular.io/guide/dynamic-form</a>) but how convert this example with md-input-container and angular material? </p>
  
  <pre><code>&lt;div [formGroup]="form"&gt;
  &lt;div [ngSwitch]="question.ControlType"&gt;
  
    &lt;input placeholder={{question.Label}} *ngSwitchCase="'textbox'" [formControlName]="question.Key" [id]="question.Key"&gt;
  
    &lt;select [id]="question.Key" *ngSwitchCase="'dropdown'" [formControlName]="question.Key"&gt;
      &lt;option *ngFor="let opt of question.Options" [value]="opt.OptionKey"&gt;{{opt.OptionValue}}&lt;/option&gt;
    &lt;/select&gt;
  
    &lt;input *ngSwitchCase="'checkbox'" [type]="question.ControlType" [formControlName]="question.Key" [(ngModel)]="question.Value" (change)="question.Value = ckb.checked" #ckb&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p></p>