blob: b8c609d88e025c497147d6a9ac92a579841f01f3 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
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 */
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 Condon83fc39f2018-04-19 18:56:13 +010021import { LayerModule } from './fw/layer/layer.module';
22import { MastModule } from './fw/mast/mast.module';
23import { NavModule } from './fw/nav/nav.module';
24import { SvgModule } from './fw/svg/svg.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010025import { WidgetModule } from './fw/widget/widget.module';
Sean Condona00bf382018-06-23 07:54:01 +010026import { OnosRoutingModule } from './onos-routing.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010027
Sean Condon83fc39f2018-04-19 18:56:13 +010028import { OnosComponent } from './onos.component';
29import { DetectBrowserDirective } from './detectbrowser.directive';
30
31import { ConsoleLoggerService } from './consolelogger.service';
32import { LogService } from './log.service';
33import { OnosService } from './onos.service';
34
Sean Condon83fc39f2018-04-19 18:56:13 +010035/**
36 * ONOS GUI -- Main Application Module
37 */
38@NgModule({
39 declarations: [
40 OnosComponent,
41 DetectBrowserDirective
42 ],
43 imports: [
Sean Condon83fc39f2018-04-19 18:56:13 +010044 BrowserModule,
45 BrowserAnimationsModule,
Sean Condon2aa86092018-07-16 09:04:05 +010046 HttpClientModule,
Sean Condon83fc39f2018-04-19 18:56:13 +010047 LayerModule,
48 MastModule,
49 NavModule,
Sean Condon83fc39f2018-04-19 18:56:13 +010050 SvgModule,
Sean Condona00bf382018-06-23 07:54:01 +010051 WidgetModule,
52 OnosRoutingModule
Sean Condon83fc39f2018-04-19 18:56:13 +010053 ],
54 providers: [
55 OnosService,
56 { provide: LogService, useClass: ConsoleLoggerService },
Sean Condona00bf382018-06-23 07:54:01 +010057 { provide: 'Window', useValue: window }
Sean Condon83fc39f2018-04-19 18:56:13 +010058 ],
59 bootstrap: [
60 OnosComponent,
61 ]
62})
63export class OnosModule { }