diff --git a/public/docs/_examples/homepage-todo/ts/src/todo_app.ts b/public/docs/_examples/homepage-todo/ts/src/todo_app.ts index 8aa4b28129..d62b24279a 100644 --- a/public/docs/_examples/homepage-todo/ts/src/todo_app.ts +++ b/public/docs/_examples/homepage-todo/ts/src/todo_app.ts @@ -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 {