Angular · Middle · Question 63 of 75

How do you lazy-load a group of child routes?

{ path: 'admin', loadChildren: () => import('./admin/admin.routes').then((m) => m.ADMIN_ROUTES) }

Explanation

The whole feature (components, services from route providers) goes into a separate chunk loaded on first visit.

Further reading

Problem with a question

Angular · Middle · question 63

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz