I have a below lightning component:
<!--ParentCmp--->
<aura:component>
...
<aura:if isTrue="{!!v.condition}">
<c:childCmp/>
</aura:if>
...
</aura:component>
When this above component gets loaded, the init method of child component childCmp
gets called even if the condition isTrue="{!!v.condition}"
is false.
I do not want to load the init of childCmp
which is why I kept it in False condition but still the init method of child component childCmp
is getting invoked, what should I do to stop the loading of childCmp Init when parent component loads?