consumer-routing-module.ts 1019 B

1234567891011121314151617181920212223242526
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { Home } from './home/home';
  4. import { BookingRecycle } from './booking-recycle/booking-recycle';
  5. import { Earnings } from './earnings/earnings';
  6. import { PointsMall } from './points-mall/points-mall';
  7. import { EcoKnowledge } from './eco-knowledge/eco-knowledge';
  8. import { AiAssistant } from './ai-assistant/ai-assistant';
  9. import { Profile } from './profile/profile';
  10. const routes: Routes = [
  11. { path: '', redirectTo: 'home', pathMatch: 'full' },
  12. { path: 'home', component: Home },
  13. { path: 'booking-recycle', component: BookingRecycle },
  14. { path: 'earnings', component: Earnings },
  15. { path: 'points-mall', component: PointsMall },
  16. { path: 'eco-knowledge', component: EcoKnowledge },
  17. { path: 'ai-assistant', component: AiAssistant },
  18. { path: 'profile', component: Profile }
  19. ];
  20. @NgModule({
  21. imports: [RouterModule.forChild(routes)],
  22. exports: [RouterModule]
  23. })
  24. export class ConsumerRoutingModule { }