Angular · Junior · Question 42 of 75
Where does the router render the matched component?
- ✓Correct answer: In
<router-outlet /> - 2In
<ng-content /> - 3In the
<body>element, replacing the app
Explanation
RouterOutlet is a placeholder in a layout component. Nested routes (children) render in an outlet inside the parent route's component.