-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdrestaurant-customer.module.ts
63 lines (62 loc) · 1.94 KB
/
drestaurant-customer.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Route } from '@angular/router';
import { DrestaurantCustomerComponent } from './drestaurant-customer/drestaurant-customer.component';
import { CustomerCreateComponent } from './customer-create/customer-create.component';
import { CustomerDetailComponent } from './customer-detail/customer-detail.component';
import { CustomerListComponent } from './customer-list/customer-list.component';
import { CustomerOrderListComponent } from './customer-order-list/customer-order-list.component';
import { CustomerOrderDetailComponent } from './customer-order-detail/customer-order-detail.component';
import { DrestaurantUiModule } from '@d-restaurant-frontend/drestaurant-ui';
import { HttpClientModule } from '@angular/common/http';
import { DrestaurantSharedModule } from '@d-restaurant-frontend/drestaurant-shared';
export const drestaurantCustomerRoutes: Route[] = [
{
path: '',
component: DrestaurantCustomerComponent,
children: [
{
path: '',
component: CustomerListComponent,
children: [
{
path: ':id',
component: CustomerDetailComponent
},
{
path: 'action/new',
component: CustomerCreateComponent
}
]
},
{
path: 'orders',
component: CustomerOrderListComponent,
children: [
{
path: ':id',
component: CustomerOrderDetailComponent
}
]
}
]
}
];
@NgModule({
imports: [
CommonModule,
RouterModule,
DrestaurantUiModule,
DrestaurantSharedModule,
HttpClientModule
],
declarations: [
DrestaurantCustomerComponent,
CustomerCreateComponent,
CustomerDetailComponent,
CustomerListComponent,
CustomerOrderListComponent,
CustomerOrderDetailComponent
]
})
export class DrestaurantCustomerModule {}