Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support default exports #95

Open
brandonroberts opened this issue May 30, 2022 · 0 comments
Open

feat: Support default exports #95

brandonroberts opened this issue May 30, 2022 · 0 comments

Comments

@brandonroberts
Copy link
Collaborator

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')
  };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant