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