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
| import { NgModule } from '@angular/core';
| import { CommonModule } from '@angular/common';
| import { BasicInfoComponent } from './basic-info/basic-info.component';
| import { VersionComponent } from './version/version.component';
| import { MonitorPointComponent } from './monitor-point/monitor-point.component';
| import {RouterModule, Routes} from '@angular/router';
|
| const routes: Routes = [
| {
| path: '',
| children: [
| { path: 'basic', component: BasicInfoComponent },
| { path: 'version', component: VersionComponent },
| { path: 'monitor-point', component: MonitorPointComponent }
| ]
| }
| ];
|
| @NgModule({
| imports: [
| CommonModule,
| RouterModule.forChild(routes)
| ],
| declarations: [
| BasicInfoComponent,
| VersionComponent,
| MonitorPointComponent
| ]
| })
| export class DevicesModule { }
|
|