docs(homepage-todo): corrected remaining()

closes #522
This commit is contained in:
Akshar Patel 2015-12-15 16:09:09 +05:30 committed by Ward Bell
parent 5a7e748b43
commit 58ea050065
1 changed files with 2 additions and 2 deletions

View File

@ -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 {