Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame^] | 1 | import {RouterModule, Routes} from '@angular/router'; |
| 2 | |
| 3 | import {HomeComponent} from './home/home.component'; |
| 4 | import {BrowseSdcComponent} from './browseSdc/browseSdc.component'; |
| 5 | import {ServicePlanningComponent, ServicePlanningEmptyComponent} from './drawingBoard/service-planning/service-planning.component'; |
| 6 | import {VlanTaggingComponent} from './vlanTagging/vlan-tagging.component'; |
| 7 | import {ServicePopupComponent} from './components/service-popup/service-popup.component'; |
| 8 | import { InstantiationStatusComponent } from './instantiationStatus/instantiationStatus.component'; |
| 9 | import {HealthStatusComponent} from "./healthStatus/health-status.component"; |
| 10 | import {FlagsResolve} from "./services/flags.resolve"; |
| 11 | |
| 12 | const routes: Routes = [ |
| 13 | { path: '', component: HomeComponent, pathMatch: 'full' ,resolve : { |
| 14 | flags : FlagsResolve, |
| 15 | }}, |
| 16 | { path: 'browseSdc', component: BrowseSdcComponent, resolve : { |
| 17 | flags : FlagsResolve, |
| 18 | }}, |
| 19 | { path: 'servicePlanning', component: ServicePlanningComponent, resolve : { |
| 20 | flags : FlagsResolve, |
| 21 | }}, |
| 22 | { path: 'servicePlanningEmpty', component: ServicePlanningEmptyComponent, resolve : { |
| 23 | flags : FlagsResolve, |
| 24 | }}, |
| 25 | { path: 'servicePopup', component: ServicePopupComponent, resolve : { |
| 26 | flags : FlagsResolve, |
| 27 | }}, |
| 28 | { path :'vlan', component : VlanTaggingComponent, resolve : { |
| 29 | flags : FlagsResolve, |
| 30 | }}, |
| 31 | { path: 'instantiationStatus', component: InstantiationStatusComponent, resolve : { |
| 32 | flags : FlagsResolve, |
| 33 | }}, |
| 34 | { path: 'healthStatus', component: HealthStatusComponent, resolve : { |
| 35 | flags : FlagsResolve, |
| 36 | }} |
| 37 | |
| 38 | ]; |
| 39 | |
| 40 | export const routing = RouterModule.forRoot(routes); |