user.modules.routes.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { AlbumComponent } from './album/album.component';
  4. import { CertificationComponent } from './certification/certification.component';
  5. import { FeedbackComponent } from './feedback/feedback.component';
  6. import { ProfileComponent } from './profile/profile.component';
  7. import { SettingComponent } from './setting/setting.component';
  8. import { ShareComponent } from './share/share.component';
  9. const routes: Routes = [
  10. {
  11. path: 'profile/:id',//实名
  12. component: ProfileComponent,
  13. },
  14. {
  15. path: 'idcard',//实名
  16. component: CertificationComponent,
  17. },
  18. {
  19. path: 'album',//相册
  20. component: AlbumComponent,
  21. },
  22. {
  23. path: 'feedback',//意见反馈
  24. component: FeedbackComponent,
  25. },
  26. {
  27. path: 'share',//分享
  28. component: ShareComponent,
  29. },
  30. {
  31. path: 'setting',//设置
  32. component: SettingComponent,
  33. },
  34. ]
  35. @NgModule({
  36. imports: [RouterModule.forChild(routes)],
  37. exports: [RouterModule],
  38. })
  39. export class UserRoutingModule { }