These are chat archives for filearts/plunker

17th
Sep 2017
Huỳnh Trần Khanh
@khanh2003
Sep 17 2017 01:33
Hi, I can't use Streamer Mode in Plunker.
Unable to join stream.
bizzer4life
@bizzer4life
Sep 17 2017 04:27
@skylize What would I do without you?
sankara43
@sankara43
Sep 17 2017 07:08
hi
jugrigori
@jugrigori
Sep 17 2017 14:55

Hey, one question: because I'm received an alert about ("i" is already defined), if they are in commands "for " different?

toggleAll: function(){
var totalTodos = this.todo.length;
var completedTodos = 0;

//get the number of completed todos.

for(var i = 0; i < totalTodos; i++){
  if(this.todo[i].completed === true){
    completedTodos++;
  }
}

//if everythig's true, make everything false. 

if(completedTodos === totalTodos){
  for(var i = 0; i < totalTodos; i++){
    this.todo[i].completed = false;
  }
}

this.displayTodo();

}

xUbZx
@xUbZx
Sep 17 2017 20:17
@jugrigori Ask Gordon ;]
xUbZx
@xUbZx
Sep 17 2017 20:37
@jugrigori Your code works fine for me, no such error. ??? what is your array name?