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