title: Change specific button text on click inside ngFor
body: <p>I have a list of 10 buttons using ngFor. I want to change the name of the button to enable and disable. At first I have <code>Disable</code> and when I click the button, the specific button with the <code>id</code> should change the text into <code>Enable</code> but every 10 buttons gets changed.</p>
  
  <p><code>html</code></p>
  
  <pre><code>&lt;div *ngFor="let task of tasks"&gt;
      &lt;button (click)="enableDisableRule(task.id)"&gt;{{toggleButton}}&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>component</code></p>
  
  <pre><code>toggle = true;
  toggleButton = 'Disable';
  
  tasks = [
    {"id": 1, "name":"john"},
    {"id": 2, "name":"tom"},
    .............
    .......
    {"id":10, "name":"harry"}
  ]
  
  enableDisableRule(id) {
      this.toggle = !this.toggle;
      this.toggleButton = this.toggle ? 'Disable' : 'Enable';
  }
  </code></pre>
  
  <p>Can someone let me know how can I do it so that only the specific button text is changed.</p>
  
  <p>Any help is appreciated. Thank you</p>