blob: 50d013c1ede852c729ff5f84201b0176858f592a [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
2 * Copyright 2015-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 { NgModule } from '@angular/core';
17import { CommonModule } from '@angular/common';
18import { LayerModule } from '../layer/layer.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010019import { SvgModule } from '../svg/svg.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010020
21import { ButtonService } from './button.service';
22import { ChartBuilderService } from './chartbuilder.service';
23import { ListService } from './list.service';
Sean Condon83fc39f2018-04-19 18:56:13 +010024import { TableDetailService } from './tabledetail.service';
25import { ToolbarService } from './toolbar.service';
Sean Condon83fc39f2018-04-19 18:56:13 +010026import { SortableHeaderDirective } from './sortableheader.directive';
27import { TableResizeDirective } from './tableresize.directive';
28import { FlashChangesDirective } from './flashchanges.directive';
29
30/**
31 * ONOS GUI -- Widgets Module
32 */
33@NgModule({
34 imports: [
35 CommonModule
36 // Services have global scope and their modules don't have to be imported again
37 // It's enough to import them in the OnosModule
38 ],
39 declarations: [
Sean Condon83fc39f2018-04-19 18:56:13 +010040 SortableHeaderDirective,
41 TableResizeDirective,
42 FlashChangesDirective
43 ],
44 providers: [
45 ButtonService,
46 ChartBuilderService,
47 ListService,
Sean Condon83fc39f2018-04-19 18:56:13 +010048 TableDetailService,
Sean Condon83fc39f2018-04-19 18:56:13 +010049 ToolbarService
50 ]
51})
52export class WidgetModule { }