From b5f41f2c358c92261435f87dfc854e798e9a21a3 Mon Sep 17 00:00:00 2001 From: Anuj Jain Date: Thu, 5 Apr 2018 23:31:41 +0530 Subject: [PATCH] docs: fixed live example for the lifecycle hooks. (#23201) PR Close #23201 --- .../lifecycle-hooks/src/app/peek-a-boo-parent.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/aio/content/examples/lifecycle-hooks/src/app/peek-a-boo-parent.component.ts b/aio/content/examples/lifecycle-hooks/src/app/peek-a-boo-parent.component.ts index 3f2bd8585d..7edb57bfc3 100644 --- a/aio/content/examples/lifecycle-hooks/src/app/peek-a-boo-parent.component.ts +++ b/aio/content/examples/lifecycle-hooks/src/app/peek-a-boo-parent.component.ts @@ -43,6 +43,7 @@ export class PeekABooParentComponent { this.heroName = 'Windstorm'; this.logger.clear(); // clear log on create } + this.hookLog = this.logger.logs; this.logger.tick(); }