| | |
| | | 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: [ |
| | |
| | | ], |
| | | declarations: [ |
| | | InstallerComponent, |
| | | ReceiverComponent, |
| | | ...COMPONENTS_NOROUNT |
| | | ...COMPONENTS_NOROUNT, |
| | | AlarmUserComponent, |
| | | AlarmUserEditComponent |
| | | ], |
| | | entryComponents: COMPONENTS_NOROUNT |
| | | }) |