todo component fix

This commit is contained in:
nixa 2016-05-05 19:11:31 +03:00
parent 472155af22
commit 8fe294bd34

View file

@ -20,10 +20,6 @@ export class Todo {
this.todoList = this._todoService.getTodoList(); this.todoList = this._todoService.getTodoList();
} }
ngOnInit() {
}
getNotDeleted() { getNotDeleted() {
return this.todoList.filter((item:any) => {return !item.deleted}) return this.todoList.filter((item:any) => {return !item.deleted})
} }
@ -48,7 +44,7 @@ export class Todo {
} }
} }
addToDoItem($event, clickPlus) { addToDoItem($event) {
if ($event.which === 1 || $event.which === 13) { if ($event.which === 1 || $event.which === 13) {