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
| import { NgModule } from '@angular/core';
| import { CommonModule } from '@angular/common';
| import { InstallerComponent } from './installer/installer.component';
| import { RouterModule, Routes } from '@angular/router';
| import { SharedModule } from '@shared/shared.module';
|
| import { UserInstallerEditComponent } from './installer/edit/edit.component';
| import { AlarmUserComponent } from './alarm-user/alarm-user.component';
| import { AlarmUserEditComponent } from './alarm-user/alarm-user-edit/alarm-user-edit.component';
|
| const routes: Routes = [
| {
| path: '',
| children: [
| { path: 'installer', component: InstallerComponent },
| { path: 'alarm-user', component: AlarmUserComponent }
| ]
| }
| ];
|
| const COMPONENTS_NOROUNT = [ UserInstallerEditComponent, AlarmUserEditComponent ];
|
| @NgModule({
| imports: [
| CommonModule,
| SharedModule,
| RouterModule.forChild(routes)
| ],
| declarations: [
| InstallerComponent,
| ...COMPONENTS_NOROUNT,
| AlarmUserComponent,
| AlarmUserEditComponent
| ],
| entryComponents: COMPONENTS_NOROUNT
| })
| export class UsersModule { }
|
|