You're building an e-commerce application and want to create a nested navigation structure where product categories have sub-categories. How would you design the routing for this scenario using child routes?

  • Configure named outlets for sub-categories
  • Define child routes within the parent component
  • Implement a shared module for navigation
  • Use auxiliary outlets for sub-categories
To create nested navigation with sub-categories, you should define child routes within the parent component. This allows for a hierarchical structure in your routing.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *