7- Implementing a fadeOut Animation - Not working

  1. src\app\todos\todos.component.html
  <!-- P14_7 -- (click) needs to be added for animation to run -->
  <div class="list-group" *ngIf="items">
    <button type="button" 
    @fade
    *ngFor="let item of items" class="list-group-item"
    (click)="removeItem(item)"
    >{{items}}</button>
  </div>
  1. src\app\todos\todos.component.ts
  // P14_7
  // removeItem(item) {
  removeItem(item: any) {
    let index = this.items.indexOf(item);
    this.items.splice(index, 1);
  }

Hope this helps someone :slight_smile: