I have a component, it's working fine until I didn't add an heavy children component that freeze the page. Now I would implement a lazy loading for the children component (is that the right solution?).
Also, I start to load the component only if "dataForMapReady" is true.
Actually, that's my html in fhater:
FATHER HTML
<div style="margin: 1.5em 1.5em;" [ngbCollapse]="isCollapsed">
<div *ngIf="dataForMapReady">
<mm-map-management [newsearch]="newsearch" [parameters]="parametersToMap" [resultsTotal]="results.total" [checkedFavorite]="checkedFavorite" [sortField]="sortField" [sortDir]="sortDir"></mm-map-management>
</div>
</div>
I can't understand how to implement lazy loading in this case, I'm newbie of Angular.