What is the primary purpose of the RouterOutlet directive in Angular?

  • To define a route configuration.
  • To create a navigation link.
  • To act as a placeholder for route content.
  • To configure HTTP requests.
The primary purpose of the RouterOutlet directive in Angular is to act as a placeholder for route content. It is used in the template to determine where the routed components should be displayed within the layout. This is essential for rendering the correct component when navigating between routes. The other options do not accurately describe the role of RouterOutlet in Angular.
Add your answer
Loading...

Leave a comment

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