Which module in Angular is primarily used for setting up routing?
- AppRoutingModule
- NgModule
- RouterModule
- RoutingModule
In Angular, the RouterModule is primarily used for setting up routing. It provides the necessary tools and components to configure routing in an Angular application. While NgModule is a fundamental building block in Angular, it's not specifically designed for routing. AppRoutingModule and RoutingModule are commonly used names for the routing module in many Angular projects.
Loading...
Related Quiz
- If two modules provide the same service and are imported into a third module, the service from the ________ module will be used.
- In Angular, the _____ decorator is used to bind a property in the child component to receive a value from the parent component.
- Which directive is used in Angular to conditionally display an element in the DOM?
- At which lifecycle hook is it best to make an HTTP request in an Angular component?
- In the Angular router, what is the purpose of the pathMatch property?