-
Notifications
You must be signed in to change notification settings - Fork 14
/
drestaurant-order.module.ts
49 lines (48 loc) · 1.4 KB
/
drestaurant-order.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Route } from '@angular/router';
import { DrestaurantOrderComponent } from './drestaurant-order/drestaurant-order.component';
import { OrderListComponent } from './order-list/order-list.component';
import { OrderDetailComponent } from './order-detail/order-detail.component';
import { OrderCreateComponent } from './order-create/order-create.component';
import { DrestaurantSharedModule } from '@d-restaurant-frontend/drestaurant-shared';
import { HttpClientModule } from '@angular/common/http';
import { DrestaurantUiModule } from '@d-restaurant-frontend/drestaurant-ui';
export const drestaurantOrderRoutes: Route[] = [
{
path: '',
component: DrestaurantOrderComponent,
children: [
{
path: '',
component: OrderListComponent,
children: [
{
path: ':id',
component: OrderDetailComponent
},
{
path: 'action/new',
component: OrderCreateComponent
}
]
}
]
}
];
@NgModule({
imports: [
CommonModule,
RouterModule,
DrestaurantUiModule,
DrestaurantSharedModule,
HttpClientModule
],
declarations: [
DrestaurantOrderComponent,
OrderListComponent,
OrderDetailComponent,
OrderCreateComponent
]
})
export class DrestaurantOrderModule {}