import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AccountPageComponent } from './account-page.component';
import { ProfilePageComponent } from './profile/profile-page.component';
import { SettingsPageComponent } from './settings/settings-page.component';

const routes: Routes = [
  {
    path: '',
    component: AccountPageComponent,
    children: [
      { path: '', redirectTo: 'profile' },
      { path: 'profile', component:  ProfilePageComponent},
      { path: 'settings', component: SettingsPageComponent},
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AccountPageRoutingModule { }
