karma error parent child

Solutions on MaxInterview for karma error parent child by the best coders in the world

showing results for - "karma error parent child"
Elyne
25 Jan 2020
1import { ChildComponent } from 'childComponent';
2
3...
4let component: ThisComponet;
5let childComponent: ChildComponent;
6.....
7declarations: [ChildComponent],
8.....
9component = fixture.componentInstance;
10// to get a handle on the child component, you can select it By.directive
11childComponent = fixture.debugElement.query(By.directive(ChildComponent)).componentInstance; 
12// should have access to your childComponent public properties and methods now
13