I'm trying to refactor my dynamic module loading into a standalone strategy.
In order to use the same route to programmatically load content
Previously I built a module loader to logically load the correct module thus keeping the unused module out of the bundle payload.
In this example it was the public user profile vs an editable profile when the owner is viewing.
<div *ngIf="owner" module-loader selector="post-create"></div>
<div *ngIf="!owner" module-loader selector="posts-view"></div>
When it comes to standalone components, are there ways to only load a specific component bundle via routing or even via componentLoader
in a template or any other ways?