blob: 0e8b9bad7a3d2d7d9ed058ed85084a9adf56657f [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
Sean Condonf4f54a12018-10-10 23:25:46 +01002 * 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 { BrowserModule } from '@angular/platform-browser';
17import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Sean Condon2aa86092018-07-16 09:04:05 +010018import { HttpClientModule } from '@angular/common/http';
Sean Condon83fc39f2018-04-19 18:56:13 +010019import { NgModule } from '@angular/core';
Sean Condon83fc39f2018-04-19 18:56:13 +010020
Sean Condona00bf382018-06-23 07:54:01 +010021import { OnosRoutingModule } from './onos-routing.module';
Sean Condon5ca00262018-09-06 17:55:25 +010022import { NavComponent } from './nav/nav.component';
Sean Condon83fc39f2018-04-19 18:56:13 +010023import { OnosComponent } from './onos.component';
Sean Condon98b6ddb2019-12-24 08:07:40 +000024import {
25 Gui2FwLibModule,
26 ConsoleLoggerService,
27 LogService
28} from '../../../../../gui2-fw-lib/public_api';
Sean Condon83fc39f2018-04-19 18:56:13 +010029import { OnosService } from './onos.service';
30
Sean Condon83fc39f2018-04-19 18:56:13 +010031/**
32 * ONOS GUI -- Main Application Module
33 */
34@NgModule({
Sean Condon98b6ddb2019-12-24 08:07:40 +000035 declarations: [
36 NavComponent,
37 OnosComponent
38 ],
39 imports: [
40 BrowserModule,
41 BrowserAnimationsModule,
42 HttpClientModule,
43 Gui2FwLibModule,
44 OnosRoutingModule
45 ],
46 providers: [
47 OnosService,
48 {provide: LogService, useClass: ConsoleLoggerService},
49 {provide: 'Window', useValue: window}
50 ],
51 bootstrap: [
52 OnosComponent,
53 ]
Sean Condon83fc39f2018-04-19 18:56:13 +010054})
Sean Condon98b6ddb2019-12-24 08:07:40 +000055export class OnosModule {
56}