title: Angular - How to hide and show content with a boolean for 'this' item in a ngFor loop
body: <p>I have an ngFor loop displaying several list items. Each list item contains a title. It also contains an input with the title inside it which I want hidden. When I hit an edit button, I want the input for that selected item to show, none of the others. What's the best way to approach this?</p>
  
  <p>Below is what I have so far. However, when initiating 'editItem' and setting 'editable' to true, the input box for all items appears, not just the one I clicked on.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>editable = false;
  
  editItem(){
    this.editable = true;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li *ngFor="let item of items | async"&gt;
      &lt;div class="item"&gt;
        &lt;div class="title"&gt; {{ item.item_title }}&lt;/div&gt;
        &lt;input #newItemName type="text" [(ngModel)]="this.item.item_title" *ngIf="editable"/&gt;
        &lt;i aria-hidden="true" (click)="editItem()"&gt;&lt;/i&gt;
       &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any assistance would be greatly appreciated :)</p>