Closed sryzycki closed 8 years ago
Ah yes! Sorry. Could you also change the lines underneath to use newTodo
as well please dude?:
if (!todo) return;
this.todos.unshift(todo);
No problem! Force pushed.
Made them all to be "todo" property not to confuse people who learn ES2015 and come across all the this.newTodo
stuff in the TodoController
.
Awesome, saw the update - thanks so much!
Let me know if I'm missing something...
Currently,
addTodo({ todo })
expects an object with atodo
property but in theonSubmit()
function it provides an object with thenewTodo
property.