import { NgModule } from '@angular/core'; @NgModule({ // routes has the route configuration. // It is a variable of type Routes imports: [RouterModule.forRoot(routes)],/* there is some error here routes isnt defined,I knew I have should have implemented paths and components but like I clarified above there is a component parameter for forRoot() method . In my case I had no components I have only links */ exports: [RouterModule] }) export class AppRoutingModule { }
main-nav.component.html
#drawer class="sidenav" fixedInViewport="true" [attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'" [mode]="(isHandset$ | async) ? 'over' : 'side'" [opened]="!(isHandset$ | async)"> Menu City 1 City 2 City 3