I am writing an Angular 2 unit test. I have a @ViewChild subcomponent that I need to recognize after the component initializes. In this case it\'s a Timepicke
@ViewChild
Timepicke
Make sure your child component does not have a *ngIf that is evaluating to false. If so, it will result in the child component as being undefined.