parent
5a7e748b43
commit
58ea050065
|
@ -21,8 +21,8 @@ export class TodoApp {
|
|||
{text:'build an angular app', done:false}
|
||||
];
|
||||
|
||||
get remaining(): number {
|
||||
return this.todos.reduce((count, todo: Todo) => count + todo.done, 0);
|
||||
get remaining() {
|
||||
return this.todos.reduce((count: number, todo: Todo) => count + +!todo.done, 0);
|
||||
}
|
||||
|
||||
archive(): void {
|
||||
|
|
Loading…
Reference in New Issue