Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created March 26, 2018 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/aba8d8561984dc194fdf3657a3167f8c to your computer and use it in GitHub Desktop.
Save debugmodedotnet/aba8d8561984dc194fdf3657a3167f8c to your computer and use it in GitHub Desktop.
export class AppComponent implements OnInit, AfterViewInit {
message: any;
@ViewChild(MessageComponent) messageViewChild: MessageComponent;
ngAfterViewInit() {
console.log(this.messageViewChild);
}
ngOnInit() {
this.message = 'Hello World !';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment