diff --git a/apps/angular/projects/ordering/src/ordering-routing.module.ts b/apps/angular/projects/ordering/src/ordering-routing.module.ts index 2948f4d6..b244fed3 100644 --- a/apps/angular/projects/ordering/src/ordering-routing.module.ts +++ b/apps/angular/projects/ordering/src/ordering-routing.module.ts @@ -1,9 +1,12 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { DashboardComponent } from './pages/dashboard/dashboard.component'; const routes: Routes = [ - { path: '', component: DashboardComponent, pathMatch: 'full' }, + { + path: '', + loadChildren: () => import('./pages/dashboard/dashboard.module').then(m => m.DashboardModule), + pathMatch: 'full', + }, { path: 'orders', loadChildren: () => import('./pages/orders/orders.module').then(m => m.OrdersModule), diff --git a/apps/angular/projects/ordering/src/ordering.module.ts b/apps/angular/projects/ordering/src/ordering.module.ts index 4b89cfdb..724b0dfb 100644 --- a/apps/angular/projects/ordering/src/ordering.module.ts +++ b/apps/angular/projects/ordering/src/ordering.module.ts @@ -1,12 +1,9 @@ import { NgModule } from '@angular/core'; import { OrderingRoutingModule } from './ordering-routing.module'; -import { DashboardComponent } from './pages/dashboard/dashboard.component'; -import { TopSellingComponent } from './pages/dashboard/components/top-selling/top-selling.component'; -import { CommonModule } from '@angular/common'; @NgModule({ - declarations: [DashboardComponent, TopSellingComponent], - imports: [OrderingRoutingModule, CommonModule], + declarations: [], + imports: [OrderingRoutingModule], exports: [], }) export class OrderingModule {} diff --git a/apps/angular/projects/ordering/src/pages/dashboard/components/order-status-chart/order-status-chart.component.html b/apps/angular/projects/ordering/src/pages/dashboard/components/order-status-chart/order-status-chart.component.html new file mode 100644 index 00000000..5cb2e996 --- /dev/null +++ b/apps/angular/projects/ordering/src/pages/dashboard/components/order-status-chart/order-status-chart.component.html @@ -0,0 +1,18 @@ + +
top-selling works!
-dashboard works!
-