In Angular2 , I want to find my children components , that was declared in the template in run time. how can I do it? For Example:
@Component({
template: `
<cmp1 *ngIf=expression></cmp1>
<cmp2 *ngIf=!expression></cmp2>
`
})
export class Component3{
findChild(){
// How to find cmp2
}
}