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

How can I force a preload of a route? #81

Open
YogliB opened this issue Apr 19, 2021 · 1 comment · May be fixed by #128
Open

How can I force a preload of a route? #81

YogliB opened this issue Apr 19, 2021 · 1 comment · May be fixed by #128

Comments

@YogliB
Copy link

YogliB commented Apr 19, 2021

I would imagine doing it somewhat like this:

export const routes: Routes = [
  {
    path: 'contact',
    loadChildren: import(() => './contact/contact.module').then(m => m.ContactModule),
    data: {
      preload: true
    }
  }
];

Thanks for this awesome plugin!

@huajian123
Copy link

+1

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

Successfully merging a pull request may close this issue.

2 participants