From 58ea05006582a74d9bb3fec25ee3f87db1c9b4ba Mon Sep 17 00:00:00 2001 From: Akshar Patel Date: Tue, 15 Dec 2015 16:09:09 +0530 Subject: [PATCH] docs(homepage-todo): corrected remaining() closes #522 --- public/docs/_examples/homepage-todo/ts/src/todo_app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {