import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { ProfileComponent } from "./profile/profile.component";
import { PasswordComponent } from "./password/password.component";

const routes: Routes = [
  {
    path: "profile",
    component: ProfileComponent,
    data: { title: "编辑资料" }
  },
  {
    path: "password",
    component: PasswordComponent,
    data: { title: "修改密码" }
  }
];

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