account.modules.routes.ts 583 B

123456789101112131415161718192021222324
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { BankcardComponent } from './bankcard/bankcard.component';
  4. import { WattleComponent } from './wattle/wattle.component';
  5. const routes: Routes = [
  6. {
  7. path: '',
  8. redirectTo:'wattle',
  9. pathMatch: "full",
  10. },
  11. {
  12. path: 'wattle', //钱包
  13. component: WattleComponent,
  14. },
  15. {
  16. path: 'bankcard',
  17. component: BankcardComponent,
  18. },
  19. ]
  20. @NgModule({
  21. imports: [RouterModule.forChild(routes)],
  22. exports: [RouterModule],
  23. })
  24. export class AccountRoutingModule { }