From 7f8bc74444b8ddf4ccf07c217b92b044e385de4a Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 14 May 2018 16:40:20 +0800 Subject: [PATCH] 优化 --- src/app/routes/users/users.module.ts | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/routes/users/users.module.ts b/src/app/routes/users/users.module.ts index 22ed02d..2852962 100644 --- a/src/app/routes/users/users.module.ts +++ b/src/app/routes/users/users.module.ts @@ -4,20 +4,21 @@ import { RouterModule, Routes } from '@angular/router'; import { SharedModule } from '@shared/shared.module'; -import { ReceiverComponent } from './receiver/receiver.component'; 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: 'receiver', component: ReceiverComponent } + { path: 'alarm-user', component: AlarmUserComponent } ] } ]; -const COMPONENTS_NOROUNT = [ UserInstallerEditComponent ]; +const COMPONENTS_NOROUNT = [ UserInstallerEditComponent, AlarmUserEditComponent ]; @NgModule({ imports: [ @@ -27,8 +28,9 @@ ], declarations: [ InstallerComponent, - ReceiverComponent, - ...COMPONENTS_NOROUNT + ...COMPONENTS_NOROUNT, + AlarmUserComponent, + AlarmUserEditComponent ], entryComponents: COMPONENTS_NOROUNT }) -- Gitblit v1.8.0