Suggest an editImprove this articleRefine the answer for “What does RouterModule do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**RouterModule** is an Angular module that includes everything needed for routing to work. **Key point:** without RouterModule, routing simply does not work - Angular does not know which components to show when navigating to a URL.Shown above the full answer for quick recall.Answer (EN)Image`RouterModule` is an **Angular module that includes everything needed for routing to work**. It does several key things: 1. **Registers the routes** passed to `RouterModule.forRoot()` or `RouterModule.forChild()`. ```typescript RouterModule.forRoot(routes) ``` This connects the list of routes to Angular's routing system. 2. **Adds routing directives**: - `<router-outlet>` - the place in the template where the component for the current route is inserted; - `routerLink`, `routerLinkActive`, and others - for navigating through links. 3. **Provides the** `Router` **service** - for programmatic navigation (`router.navigate()`), access to the current route, parameters, and so on. Without `RouterModule`, routing simply does not work - Angular does not know which components to show when navigating to a URL.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.