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