import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { MainPageComponent } from './components/main.page.component'; const routes: Routes = [ { path: '', redirectTo: 'main', pathMatch: 'full' }, { path: 'main', component: MainPageComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class MessengerRoutingPageModule {}