user.modules.routes.ts 746 B

1234567891011121314151617181920212223242526272829
  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. const routes: Routes = [
  7. {
  8. path: '',
  9. redirectTo:'idcard',
  10. pathMatch: "full",
  11. },
  12. {
  13. path: 'idcard',//实名
  14. component: CertificationComponent,
  15. },
  16. {
  17. path: 'album',//相册
  18. component: AlbumComponent,
  19. },
  20. {
  21. path: 'feedback',//意见反馈
  22. component: FeedbackComponent,
  23. },
  24. ]
  25. @NgModule({
  26. imports: [RouterModule.forChild(routes)],
  27. exports: [RouterModule],
  28. })
  29. export class UserRoutingModule { }