-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-management.module.ts
63 lines (60 loc) · 1.85 KB
/
admin-management.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 } from '@angular/router';
import { CoreModule } from '../core/core.module';
import { MatTableModule } from '@angular/material/table';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatRadioModule } from '@angular/material/radio';
import { MatTabsModule } from '@angular/material/tabs';
/** Component */
import { UserListComponent } from './user/user-list/user-list.component';
import { UserDetailComponent } from './user/user-detail/user-detail.component';
import { PrivilegeComponent } from './privilege/privilege.component';
import { MatCheckboxModule } from '@angular/material/checkbox';
export const ADMIN_MANAGEMENT_ROUTES = [
{
path: '',
children: [
{ path: '', component: UserListComponent },
{ path: 'edit/:id', component: UserDetailComponent },
{ path: 'create', component: UserDetailComponent }
]
}
];
@NgModule({
declarations: [
UserListComponent,
UserDetailComponent,
PrivilegeComponent,
],
imports: [
CommonModule,
CoreModule,
RouterModule.forChild(ADMIN_MANAGEMENT_ROUTES),
// Material
MatTableModule,
MatIconModule,
MatButtonModule,
MatFormFieldModule,
MatInputModule,
MatButtonToggleModule,
MatRadioModule,
MatTabsModule,
MatCheckboxModule,
// Form
FormsModule,
ReactiveFormsModule
],
providers: [
],
entryComponents: [
UserDetailComponent
]
})
export class AdminManagementModule {
}