Angular - RoutingIn Angular, where do you define child routes for a parent route?AIn a separate routing module unrelated to the parent route.BInside the children array property of the parent route object.CDirectly inside the component's TypeScript file.DWithin the app.module.ts bootstrap array.Check Answer
Step-by-Step SolutionSolution:Step 1: Locate child routes in routing configChild routes are declared inside the parent route's children property in the routing configuration.Step 2: Eliminate incorrect optionsOptions A, C, and D do not follow Angular routing patterns for child routes.Final Answer:Inside the children array property of the parent route object. -> Option BQuick Check:Child routes location = children array [OK]Quick Trick: Child routes go inside the parent's children array [OK]Common Mistakes:MISTAKESDefining child routes outside routing modulesPlacing routes inside component filesAdding routes to bootstrap array
Master "Routing" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes HTTP Client - Setting headers and params - Quiz 14medium HTTP Client - Setting headers and params - Quiz 11easy HTTP Client - HttpClientModule setup - Quiz 6medium HTTP Client - Interceptors for request modification - Quiz 3easy RxJS Operators - mergeMap vs concatMap vs exhaustMap - Quiz 9hard RxJS Operators - debounceTime for input throttling - Quiz 12easy RxJS Operators - catchError for error handling - Quiz 9hard RxJS and Observables Fundamentals - Subject types (Subject, BehaviorSubject, ReplaySubject) - Quiz 13medium Template-Driven Forms - FormsModule setup - Quiz 10hard Template-Driven Forms - FormsModule setup - Quiz 11easy