Complete the code to add a router outlet in the template.
<router-[1]></router-[1]>
The router-outlet tag is used in Angular templates to mark where routed components will be displayed.
Complete the code to import RouterModule with routes in an Angular module.
imports: [RouterModule.[1](routes)]RouterModule.forRoot(routes) sets up the router at the application's root level.
Fix the error in the route configuration to display HomeComponent at path ''.
const routes: Routes = [{ path: '', component: [1] }];The component property must reference the component class name exactly, which is usually PascalCase and ends with 'Component'.
Fill both blanks to define a route for AboutComponent with path 'about'.
const routes: Routes = [{ path: '[1]', component: [2] }];The path string should match the URL segment, and the component should be the class to render.
Fill all three blanks to create a router link to 'contact' page with text 'Contact Us'.
<a routerLink="[1]">[2]</a> <!-- uses [3] directive -->
The routerLink directive sets the link path, and the anchor text is what the user sees.