title: How to disable a input in angular2
body: <p>In ts <code>is_edit = true</code> to disable...</p>
  
  <pre><code>&lt;input [disabled]="is_edit=='false' ? true : null" id="name" type="text" [(ngModel)]="model.name" formControlName="name" class="form-control" minlength="2"&gt;
  </code></pre>
  
  <p>I just simply want to disable a input based on <code>true</code> or <code>false</code>.</p>
  
  <p>I tried following:</p>
  
  <pre><code>[disabled]="is_edit=='false' ? true : null"
  [disabled]="is_edit=='true'"
  [disabled]="is_edit"
  </code></pre>