Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | /* |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 2 | * Copyright 2018-present Open Networking Foundation |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 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 | import { BrowserModule } from '@angular/platform-browser'; |
| 17 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
Sean Condon | 2aa8609 | 2018-07-16 09:04:05 +0100 | [diff] [blame] | 18 | import { HttpClientModule } from '@angular/common/http'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 19 | import { NgModule } from '@angular/core'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 20 | |
Sean Condon | a00bf38 | 2018-06-23 07:54:01 +0100 | [diff] [blame] | 21 | import { OnosRoutingModule } from './onos-routing.module'; |
Sean Condon | 5ca0026 | 2018-09-06 17:55:25 +0100 | [diff] [blame] | 22 | import { NavComponent } from './nav/nav.component'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 23 | import { OnosComponent } from './onos.component'; |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 24 | import { |
| 25 | Gui2FwLibModule, |
| 26 | ConsoleLoggerService, |
| 27 | LogService |
Sean Condon | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 28 | } from 'gui2-fw-lib/public_api'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 29 | import { OnosService } from './onos.service'; |
| 30 | |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 31 | /** |
| 32 | * ONOS GUI -- Main Application Module |
| 33 | */ |
| 34 | @NgModule({ |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 35 | 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 Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 54 | }) |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 55 | export class OnosModule { |
| 56 | } |