Standalone component vs lazy loading module and lazy load component — Angular

Anil Kumar

--

Photo by Luke Stackpoole on Unsplash

Moving from module based to component based angular latest approach then you will face challenge for lazy loaded module using loadChildren now angular have loadComponent in standalone approach.

Angular gives command to migrate to lazy load component

ng generate @angular/core:route-lazy-loading

Official Link:-

https://angular.dev/reference/migrations/route-lazy-loading

--

--

No responses yet