What is the earliest lifecycle hook where a @ViewChild reference is guaranteed to be available?
- A constructor
- B ngOnInit
- C ngAfterViewInit
- D ngOnChanges
Answer
ngAfterViewInit
View children only exist after the component's own view has been initialised, which is what ngAfterViewInit signals.





