title: How to disable the input box using the ngIf condition?
body: <pre><code>&lt;input pInputText type="text" formControlName="description" class="form-control" placeholder="Required" *ngIf="pageModes[formModel.schema.mode] === pageModes[pageModes.View] /&gt;
  </code></pre>
  
  <p>Above is the input box which I used.. 
  My condition:</p>
  
  <pre><code>IF(pageModes[formModel.schema.mode] === pageModes[pageModes.View])
  {
      -----------(disable the input box)-------------------
  }
  ELSE
  {
      -----------(enable the input box)-------------------
  }
  </code></pre>
  
  <p>When I simply use the condition <strong><code>pageModes[formModel.schema.mode] === pageModes[pageModes.View]</code></strong>, the input box got invisible.</p>
  
  <p>Can anybody help me to disable the input box using  the condition          <strong><code>"pageModes[formModel.schema.mode] === pageModes[pageModes.View]"</code></strong></p>