blob: b007d5cd449be9962bc49a3c1e135bc81cad2557 [file] [log] [blame]
Boyuan Yan6b23b382019-06-04 11:59:35 -07001/*
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
17import { NgModule } from '@angular/core';
18import { CommonModule } from '@angular/common';
Sean Condon98b6ddb2019-12-24 08:07:40 +000019import {RouterModule} from '@angular/router';
Sean Condon3dd062f2020-04-14 09:25:00 +010020import { Gui2FwLibModule } from 'org_onosproject_onos/web/gui2-fw-lib/public_api';
Boyuan Yan6b23b382019-06-04 11:59:35 -070021import { RoadmDeviceComponent } from './roadm/roadm.component';
Boyuan Yan6b23b382019-06-04 11:59:35 -070022import { FormsModule, ReactiveFormsModule } from '@angular/forms';
23import { RoadmPortComponent } from './port/port.component';
24
25@NgModule({
26 declarations: [
27 RoadmDeviceComponent,
28 RoadmPortComponent,
29 ],
30 imports: [
Sean Condon98b6ddb2019-12-24 08:07:40 +000031 RouterModule,
Yi Tsengbb93b6e2020-02-12 14:46:07 -080032 RouterModule.forChild([
33 {path: '', component: RoadmDeviceComponent},
34 {path: 'roadm-port-gui', component: RoadmPortComponent}]),
Boyuan Yan6b23b382019-06-04 11:59:35 -070035 Gui2FwLibModule,
36 CommonModule,
37 FormsModule,
38 ReactiveFormsModule
39 ],
40 exports: [
41 RoadmDeviceComponent,
42 RoadmPortComponent,
43 ]
44})
45export class RoadmGuiLibModule { }