title: Angular 6 - *ngIf condition on input is something add attr readonly
body: <p>I am trying to add a condition to an input where is a variable = view then I add the readonly attr to the input.</p>
  
  <p>This is what I'm trying:</p>
  
  <pre><code>&lt;input *ngIf="mode == 'view' readonly"&gt;
  </code></pre>
  
  <p>This is not working at the moment.</p>
  
  <p>What I'm I doing wrong here?</p>