Is it possible to lazy load standalone component for multiple path's? Is this a proper way to do it?
{ path: 'path1', loadComponent: () => import('./someComponent.component').then(c => c.someComponent)},
{ path: 'path2', loadComponent: () => import('./someComponent.component').then(c => c.someComponent)},
In main.ts file I also set preoload strategy to preload all modules:
provideRouter(APP_ROUTES, withPreloading(PreloadAllModules))
I checked newtwork in DevTools and it looks like component is loaded only once. However I am not sure if this is the correct way of implementing it.