Problem Statement
When would you use child routes? Show a brief example.
Explanation
Child routes structure feature areas and nest views. A parent renders a shell with <router-outlet> and the children render inside it (e.g., /settings/profile and /settings/security).
Code Solution
SolutionRead Only
{ path: 'settings', component: SettingsShellComponent, children: [
{ path: 'profile', component: ProfileComponent },
{ path: 'security', component: SecurityComponent }
]}