old_contents: import {TodoItems} from 'services/todo-items';
  
  export class TodoList {
    static inject = [TodoItems];
    constructor(todoitems) {
      this.items = todoitems.items;
    }
    completeAll() {
      var that = this;
      this.items.forEach(item => {
        that.setCompleted(item, true);
      });
    }
    removeItem(item) {
      this.items.splice(this.items.indexOf(item), 1);
    }
  }
  
new_contents: import {TodoItems} from 'services/todo-items';
  
  export class TodoList {
    static inject = [TodoItems];
    constructor(todoitems) {
      this.items = todoitems.items;
    }
    completeAll() {
      this.items.forEach(item => {
        item.completed = true;
      });
    }
    removeItem(item) {
      this.items.splice(this.items.indexOf(item), 1);
    }
  }
  
subject: Fix set complete all