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
| import { NgModule } from '@angular/core';
| import { SharedModule } from '@shared/shared.module';
| import { GisShowComponent } from './gis-show/gis-show.component';
| import { RouterModule, Routes } from '@angular/router';
| import { CommonModule } from '@angular/common';
| import { PipeModule } from '@business/pipe/pipe.module';
| import { EnterpriseDataComponent } from './enterprise-data/enterprise-data.component';
| import { StandardAlarmComponent } from './standard-alarm/standard-alarm.component';
|
|
| const routes: Routes = [
| {
| path: '',
| children: [
| { path: 'gis-show', component: GisShowComponent },
| { path: 'enterprise-data', component: EnterpriseDataComponent },
| { path: 'standard-alarm', component: StandardAlarmComponent }
| ]
| }
| ];
| const COMPONENT_NOROUNT = [];
|
| @NgModule({
| imports: [
| // 管道模块必须当前模块导入
| PipeModule,
| CommonModule,
| SharedModule,
| RouterModule.forChild(routes)
| ],
| declarations: [
| ...COMPONENT_NOROUNT,
| EnterpriseDataComponent,
| StandardAlarmComponent,
| GisShowComponent
| ],
| entryComponents: COMPONENT_NOROUNT
| })
| export class EnterpriseManagementModule { }
|
|