blob: 78cf1124ef3299047ae5c47b1883be901a5f5f03 [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';
18import { NgModule } from '@angular/core';
Sean Condon83fc39f2018-04-19 18:56:13 +010019
20import { AppsModule } from './view/apps/apps.module';
21import { DeviceModule } from './view/device/device.module';
22
23import { LayerModule } from './fw/layer/layer.module';
24import { MastModule } from './fw/mast/mast.module';
25import { NavModule } from './fw/nav/nav.module';
26import { SvgModule } from './fw/svg/svg.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010027import { WidgetModule } from './fw/widget/widget.module';
Sean Condona00bf382018-06-23 07:54:01 +010028import { OnosRoutingModule } from './onos-routing.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010029
Sean Condon83fc39f2018-04-19 18:56:13 +010030import { OnosComponent } from './onos.component';
31import { DetectBrowserDirective } from './detectbrowser.directive';
32
33import { ConsoleLoggerService } from './consolelogger.service';
34import { LogService } from './log.service';
35import { OnosService } from './onos.service';
36
Sean Condon83fc39f2018-04-19 18:56:13 +010037/**
38 * ONOS GUI -- Main Application Module
39 */
40@NgModule({
41 declarations: [
42 OnosComponent,
43 DetectBrowserDirective
44 ],
45 imports: [
Sean Condon83fc39f2018-04-19 18:56:13 +010046 BrowserModule,
47 BrowserAnimationsModule,
48 LayerModule,
49 MastModule,
50 NavModule,
Sean Condon83fc39f2018-04-19 18:56:13 +010051 SvgModule,
Sean Condona00bf382018-06-23 07:54:01 +010052 WidgetModule,
53 OnosRoutingModule
Sean Condon83fc39f2018-04-19 18:56:13 +010054 ],
55 providers: [
56 OnosService,
57 { provide: LogService, useClass: ConsoleLoggerService },
Sean Condona00bf382018-06-23 07:54:01 +010058 { provide: 'Window', useValue: window }
Sean Condon83fc39f2018-04-19 18:56:13 +010059 ],
60 bootstrap: [
61 OnosComponent,
62 ]
63})
64export class OnosModule { }