blob: f9bbd15f3339e15aee23fb319a3e0f3f790dd6bd [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 Condon5ca00262018-09-06 17:55:25 +010024import { Gui2FwLibModule, ConsoleLoggerService, LogService } from 'gui2-fw-lib';
Sean Condon83fc39f2018-04-19 18:56:13 +010025import { OnosService } from './onos.service';
26
Sean Condon83fc39f2018-04-19 18:56:13 +010027/**
28 * ONOS GUI -- Main Application Module
29 */
30@NgModule({
31 declarations: [
Sean Condon5ca00262018-09-06 17:55:25 +010032 NavComponent,
33 OnosComponent
Sean Condon83fc39f2018-04-19 18:56:13 +010034 ],
35 imports: [
Sean Condon83fc39f2018-04-19 18:56:13 +010036 BrowserModule,
37 BrowserAnimationsModule,
Sean Condon2aa86092018-07-16 09:04:05 +010038 HttpClientModule,
Sean Condon5ca00262018-09-06 17:55:25 +010039 Gui2FwLibModule,
Sean Condona00bf382018-06-23 07:54:01 +010040 OnosRoutingModule
Sean Condon83fc39f2018-04-19 18:56:13 +010041 ],
42 providers: [
43 OnosService,
44 { provide: LogService, useClass: ConsoleLoggerService },
Sean Condona00bf382018-06-23 07:54:01 +010045 { provide: 'Window', useValue: window }
Sean Condon83fc39f2018-04-19 18:56:13 +010046 ],
47 bootstrap: [
48 OnosComponent,
49 ]
50})
51export class OnosModule { }