docs: fixed live example for the lifecycle hooks. (#23201)

PR Close #23201
This commit is contained in:
Anuj Jain 2018-04-05 23:31:41 +05:30 committed by Igor Minar
parent a50ce6568a
commit a1231bed9c

View File

@ -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();
}