Bird
0
0

Which Angular directive is used to specify which named <router-outlet> should render a particular route?

easy🧠 Conceptual Q2 of 15
Angular - Routing
Which Angular directive is used to specify which named <router-outlet> should render a particular route?
ArouterLink
Boutlet
CrouterOutletName
Dcomponent
Step-by-Step Solution
Solution:
  1. Step 1: Identify directive for named outlets

    Angular routes use the outlet property to specify which named <router-outlet> renders the component.
  2. Step 2: Confirm other options are incorrect

    routerLink is for navigation, routerOutletName is not a valid directive, and component specifies the component class.
  3. Final Answer:

    The outlet property specifies the named router outlet. -> Option B
  4. Quick Check:

    Named outlet directive = outlet [OK]
Quick Trick: Use 'outlet' property to target named router outlets [OK]
Common Mistakes:
MISTAKES
  • Confusing routerLink with outlet property
  • Using invalid directive names like routerOutletName
  • Thinking component property controls outlet selection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes