router
router copied to clipboard
feat: Support default exports
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>
`,
})
export class MyComponent {
components = {
lazy: () => import('./lazy/lazy.component')
};
}