blob: c31df7c479b768ba35eb1271a021e7d8a4560178 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
Bhavesh72ead492018-07-19 16:29:18 +05302 * Copyright 2018-present Open Networking Foundation
Sean Condon83fc39f2018-04-19 18:56:13 +01003 *
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 */
16import { NgModule } from '@angular/core';
17import { CommonModule } from '@angular/common';
Sean Condon28ecc5f2018-06-25 12:50:16 +010018import { FormsModule } from '@angular/forms';
Sean Condon98b6ddb2019-12-24 08:07:40 +000019import { RouterModule } from '@angular/router';
Sean Condon28ecc5f2018-06-25 12:50:16 +010020import { AppsComponent } from './apps/apps.component';
21import { AppsDetailsComponent } from './appsdetails/appsdetails.component';
Sean Condon3dd062f2020-04-14 09:25:00 +010022import { Gui2FwLibModule } from 'org_onosproject_onos/web/gui2-fw-lib/public_api';
Sean Condon83fc39f2018-04-19 18:56:13 +010023
24/**
25 * ONOS GUI -- Apps View Module
26 *
27 * Note: This has been updated from onos-gui-1.0.0 where it was called 'app'
28 * whereas here it is now called 'apps'. This is to avoid any confusion with
29 * the 'app' folder which is the root of the complete framework
30 */
31@NgModule({
Sean Condon83fc39f2018-04-19 18:56:13 +010032 imports: [
Sean Condon2bd11b72018-06-15 08:00:48 +010033 CommonModule,
Sean Condon5ca00262018-09-06 17:55:25 +010034 Gui2FwLibModule,
Sean Condon98b6ddb2019-12-24 08:07:40 +000035 RouterModule.forChild([{path: '', component: AppsComponent}]),
Sean Condon5ca00262018-09-06 17:55:25 +010036 FormsModule
Sean Condon83fc39f2018-04-19 18:56:13 +010037 ],
38 declarations: [
39 AppsComponent,
Sean Condon2aa86092018-07-16 09:04:05 +010040 AppsDetailsComponent
Sean Condon83fc39f2018-04-19 18:56:13 +010041 ]
42})
43export class AppsModule { }