I have a lazy loading component for my Angular 13 project
async loadModals() {
this.viewContainerRef.clear();
const { McComponent } = await import('./components/modal/mc.component');
this.viewContainerRef.createComponent(this.componentFactoryResolver.resolveComponentFactory(McComponent));
}
But can not figure out how to import RouterModule in it in order to have working links
<a [routerLink]="['/mcu']" class="upgrade-link">
{{ upgradeLinkLable | translate }}
</a>