Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014-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 | 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 | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 21 | import { LayerModule } from './fw/layer/layer.module'; |
| 22 | import { MastModule } from './fw/mast/mast.module'; |
| 23 | import { NavModule } from './fw/nav/nav.module'; |
| 24 | import { SvgModule } from './fw/svg/svg.module'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 25 | import { WidgetModule } from './fw/widget/widget.module'; |
Sean Condon | a00bf38 | 2018-06-23 07:54:01 +0100 | [diff] [blame] | 26 | import { OnosRoutingModule } from './onos-routing.module'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 27 | |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 28 | import { OnosComponent } from './onos.component'; |
| 29 | import { DetectBrowserDirective } from './detectbrowser.directive'; |
| 30 | |
| 31 | import { ConsoleLoggerService } from './consolelogger.service'; |
| 32 | import { LogService } from './log.service'; |
| 33 | import { OnosService } from './onos.service'; |
| 34 | |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 35 | /** |
| 36 | * ONOS GUI -- Main Application Module |
| 37 | */ |
| 38 | @NgModule({ |
| 39 | declarations: [ |
| 40 | OnosComponent, |
| 41 | DetectBrowserDirective |
| 42 | ], |
| 43 | imports: [ |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 44 | BrowserModule, |
| 45 | BrowserAnimationsModule, |
Sean Condon | 2aa8609 | 2018-07-16 09:04:05 +0100 | [diff] [blame] | 46 | HttpClientModule, |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 47 | LayerModule, |
| 48 | MastModule, |
| 49 | NavModule, |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 50 | SvgModule, |
Sean Condon | a00bf38 | 2018-06-23 07:54:01 +0100 | [diff] [blame] | 51 | WidgetModule, |
| 52 | OnosRoutingModule |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 53 | ], |
| 54 | providers: [ |
| 55 | OnosService, |
| 56 | { provide: LogService, useClass: ConsoleLoggerService }, |
Sean Condon | a00bf38 | 2018-06-23 07:54:01 +0100 | [diff] [blame] | 57 | { provide: 'Window', useValue: window } |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 58 | ], |
| 59 | bootstrap: [ |
| 60 | OnosComponent, |
| 61 | ] |
| 62 | }) |
| 63 | export class OnosModule { } |