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 629629d1bd
commit b5f41f2c35
1 changed files with 1 additions and 0 deletions

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