From f59f7c76d224d4d751451a9c88aab3a8344d42f1 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 27 Feb 2019 00:21:33 -0300 Subject: [PATCH] Update posts-3.component.ts this.data doesn't exists in this example --- src/app/three-ways/posts-3.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/three-ways/posts-3.component.ts b/src/app/three-ways/posts-3.component.ts index 1fe69c5..05bbd93 100644 --- a/src/app/three-ways/posts-3.component.ts +++ b/src/app/three-ways/posts-3.component.ts @@ -38,7 +38,7 @@ export class Posts3Component implements OnInit { this._data .takeWhile(() => !this.groupPosts) // unsubscribe once groupPosts has value .subscribe(x => { - this.groupPosts = this.groupByCategory(this.data); + this.groupPosts = this.groupByCategory(x); }); } @@ -52,4 +52,4 @@ export class Posts3Component implements OnInit { return result; } -} \ No newline at end of file +}