For example,
<div *ngIf="parentCondition">
<div *ngIf="childCondition1" #testedComponent1>
</div>
<div *ngIf="childCondition2">
<div #testedComponent2>
</div>
</div>
</div>
@ViewChild('testedComponent2')
set component2(....)
The set function will not be called if childCondition2 changes.