ngx-quicklink icon indicating copy to clipboard operation
ngx-quicklink copied to clipboard

How can I force a preload of a route?

Open YogliB opened this issue 5 years ago • 1 comments

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!

YogliB avatar Apr 19 '21 07:04 YogliB

+1

huajian123 avatar Oct 06 '22 09:10 huajian123