title: Disable input based on a condition
body: <p>Hello all I have the following piece of code:</p>
  
  <pre><code>&lt;table class="details-table" *ngIf="peop &amp;&amp; peopMetadata"&gt;
      &lt;tr *ngFor="let attribute of peopMetadata.Attributes"&gt;
          &lt;td class="details-property"&gt;{{attribute.AttributeLabel}}&lt;/td&gt;
          &lt;td [ngSwitch]="attribute.AttributeType"&gt;
              &lt;div *ngSwitchCase="'String'"&gt;
                  &lt;input matInput [(ngModel)] = "peop[attribute.AttributeKey]" /&gt;
              &lt;/div&gt;
              &lt;div *ngSwitchDefault&gt;{{peop[attribute.AttributeKey]}
              &lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;div&gt;
          &lt;button ng-click=""&gt;Submit&lt;/button&gt;
      &lt;/div&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I want to disable the input based on an attribute values say peop[attribute.IsWritable]='false' . How can i achieve this here . Any help is appreciated</p>