title: How can i use the if statement in ngfor?
body: <p>I have a loop of 5 buttons and I want to disable the second button, so I tried with using the <code>*ngIf</code> inside the <code>*ngFor</code> but its not working correctly for me. Can you help me? Thanks!</p>
  
  <pre><code>&lt;div *ngFor="let day of days"&gt;
    &lt;div *ngIf="day == dayFinished "&gt;
      &lt;ion-button id={{day}} expand="block" size="large (click)="test(day)"ngDefaultControl [(ngModel)]="days"  disabled &gt;DAY {{day}}&lt;/ionbutton&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>