Boyuan Yan | 6b23b38 | 2019-06-04 11:59:35 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | import { NgModule } from '@angular/core'; |
| 18 | import { CommonModule } from '@angular/common'; |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 19 | import {RouterModule} from '@angular/router'; |
Sean Condon | 3dd062f | 2020-04-14 09:25:00 +0100 | [diff] [blame] | 20 | import { Gui2FwLibModule } from 'org_onosproject_onos/web/gui2-fw-lib/public_api'; |
Boyuan Yan | 6b23b38 | 2019-06-04 11:59:35 -0700 | [diff] [blame] | 21 | import { RoadmDeviceComponent } from './roadm/roadm.component'; |
Boyuan Yan | 6b23b38 | 2019-06-04 11:59:35 -0700 | [diff] [blame] | 22 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
| 23 | import { RoadmPortComponent } from './port/port.component'; |
| 24 | |
| 25 | @NgModule({ |
| 26 | declarations: [ |
| 27 | RoadmDeviceComponent, |
| 28 | RoadmPortComponent, |
| 29 | ], |
| 30 | imports: [ |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 31 | RouterModule, |
Yi Tseng | bb93b6e | 2020-02-12 14:46:07 -0800 | [diff] [blame] | 32 | RouterModule.forChild([ |
| 33 | {path: '', component: RoadmDeviceComponent}, |
| 34 | {path: 'roadm-port-gui', component: RoadmPortComponent}]), |
Boyuan Yan | 6b23b38 | 2019-06-04 11:59:35 -0700 | [diff] [blame] | 35 | Gui2FwLibModule, |
| 36 | CommonModule, |
| 37 | FormsModule, |
| 38 | ReactiveFormsModule |
| 39 | ], |
| 40 | exports: [ |
| 41 | RoadmDeviceComponent, |
| 42 | RoadmPortComponent, |
| 43 | ] |
| 44 | }) |
| 45 | export class RoadmGuiLibModule { } |