I am creating components dynamically using the viewContainerRef approach.
For some reason if I put the ng-container within the if block, it doesn't render any the components> I can see the loading skeletons, but after that nothing.
However, if I place the ng-containeroutside the else block, it works fine.
I wonder if I am missing something..
Any help is much appreciated.
template
@if (isLoading) {
<lib-skeleton-main-tile></lib-skeleton-main-tile>--> <lib-skeleton-sub-tile></lib-skeleton-sub-tile>-->
<lib-skeleton-sub-tile></lib-skeleton-sub-tile>--> <lib-skeleton-sub-tile></lib-skeleton-sub-tile>-->
<lib-skeleton-sub-tile></lib-skeleton-sub-tile>-->
} @else {
<ng-container #dashboardTileContainer></ng-container>
}