VS
Size: a a a
VS
L
AT
VS
L
VS
IF
S
ДЛ
Вキ
component = import('./lazy.component').then(m => m.LazyComponent);
<ng-container *ngxComponentOutlet="component | async"></ng-container>
IF
component = import('./lazy.component').then(m => m.LazyComponent);
<ng-container *ngxComponentOutlet="component | async"></ng-container>
Вキ
component1 = import('./lazy.component').then(m => m.LazyComponent1);
component2 = import('./lazy.component').then(m => m.LazyComponent2);
MM
IF
component1 = import('./lazy.component').then(m => m.LazyComponent1);
component2 = import('./lazy.component').then(m => m.LazyComponent2);
MM
MM
IF
Вキ
resolver = import('./lazy.components').then(m => m.ComponentResolver);
<ng-container
*ngxComponentOutlet="resolver | async | resolve : 'my-component'"
></ng-container>
IF