summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-10-23 11:32:03 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-10-23 11:32:05 +0800
commitde9d2e95b43991fccee342ebed03b006f6fed844 (patch)
tree0667c51a30fd3fed71fec797136d8adefc7d7baf /usecaseui-portal/src/app/app-routing.module.ts
parent101e5e37f4ece60af8d08020c7e4bd8f473adce7 (diff)
Build AngularJs component for usecase-ui
Change-Id: I393f4837fc5f9cbd71448dbf20e1f1781f0656d3 Issue-ID: USECASEUI-154 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/app-routing.module.ts')
-rw-r--r--usecaseui-portal/src/app/app-routing.module.ts41
1 files changed, 41 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/app-routing.module.ts b/usecaseui-portal/src/app/app-routing.module.ts
new file mode 100644
index 00000000..7fe7361c
--- /dev/null
+++ b/usecaseui-portal/src/app/app-routing.module.ts
@@ -0,0 +1,41 @@
+import { NgModule } from '@angular/core';
+import { RouterModule, Routes } from '@angular/router';
+
+
+import { HomeComponent } from './home/home.component';
+import { ServicesComponent } from './services/services.component';
+import { ServicesListComponent } from './services/services-list/services-list.component';
+import { OnboardVnfVmComponent } from './services/onboard-vnf-vm/onboard-vnf-vm.component';
+import { AlarmComponent } from './alarm/alarm.component';
+import { PerformanceComponent } from './performance/performance.component';
+import { PerformanceVnfComponent } from './performance/performance-vnf/performance-vnf.component';
+import { PerformanceVmComponent } from './performance/performance-vm/performance-vm.component';
+
+import { CcvpnNetworkComponent } from './ccvpn-network/ccvpn-network.component';
+
+// import { DetailsComponent } from './details/details.component';
+
+const ServicesChildRoutes: Routes = [
+ { path: 'services-list', component: ServicesListComponent},
+ { path: 'onboard-vnf-vm', component: OnboardVnfVmComponent},
+ { path: '**', redirectTo: 'services-list' }
+]
+
+const routes: Routes = [
+ { path: 'home', component: HomeComponent},
+ // { path: 'services', component: ServicesComponent, children:ServicesChildRoutes}, //暂时不是子路由结构
+ { path: 'services/services-list', component: ServicesListComponent},
+ { path: 'services/onboard-vnf-vm', component: OnboardVnfVmComponent},
+ { path: 'alarm', component: AlarmComponent},
+ { path: 'performance', component: PerformanceComponent},
+ { path: 'performance/performance-vnf', component: PerformanceVnfComponent},
+ { path: 'performance/performance-vm', component: PerformanceVmComponent},
+ { path: 'network', component: CcvpnNetworkComponent },
+ { path: '**', redirectTo: 'home', pathMatch: 'full'}
+];
+
+@NgModule({
+ imports: [ RouterModule.forRoot(routes) ],
+ exports: [ RouterModule ]
+})
+export class AppRoutingModule {}