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 | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 20 | import { Gui2FwLibModule } from '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, |
| 32 | RouterModule.forChild([{path: 'roadm-port-gui', component: RoadmPortComponent}]), |
Boyuan Yan | 6b23b38 | 2019-06-04 11:59:35 -0700 | [diff] [blame] | 33 | Gui2FwLibModule, |
| 34 | CommonModule, |
| 35 | FormsModule, |
| 36 | ReactiveFormsModule |
| 37 | ], |
| 38 | exports: [ |
| 39 | RoadmDeviceComponent, |
| 40 | RoadmPortComponent, |
| 41 | ] |
| 42 | }) |
| 43 | export class RoadmGuiLibModule { } |