When lazy loading NgModules and Components, support loading them without the .then and allow them to be exported as default.
import{Component}from'@angular/core';
@Component({template: ` <router> <route path="/lazy" [load]="components.lazy"> </route> </router> `,})exportclassMyComponent{components={lazy: ()=>import('./lazy/lazy.component')};}
When lazy loading NgModules and Components, support loading them without the
.thenand allow them to be exported as default.