In Angular, which module is primarily responsible for enabling routing functionality?
- NgModule
- Router
- RouterModule
- RoutingModule
In Angular, the primary module responsible for enabling routing functionality is RouterModule. This module provides the necessary directives and services to set up and configure routing within an Angular application. NgModule is a foundational module used for structuring Angular applications, and RoutingModule is not a standard Angular module.
Loading...
Related Quiz
- Structural directives manipulate the ________ by adding, removing, or replacing elements.
- How can you provide a custom Value Accessor for a form control in Angular?
- What is the purpose of using *ngIf in Angular templates?
-
When using
, which lifecycle hook is ideal for accessing projected content inside the child component? - For a router link to get an "active" CSS class when the link's route is active, you can use the ________ directive.