When setting up routes in an Angular application, which property in the route configuration determines the component that should be displayed?

  • component
  • displayComponent
  • loadChildren
  • routeComponent
In Angular routing, the 'component' property in the route configuration is used to determine which component should be displayed when the route is activated. This is where you specify the component class that corresponds to the route. The 'component' property plays a fundamental role in defining the view associated with a route.
Add your answer
Loading...

Leave a comment

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