19b7b055213d813c5c4924e695907cd65ce4ab7a
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / src / app / app.module.ts
1 /**
2  * Copyright (c) 2017 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12
13 import { BrowserModule } from '@angular/platform-browser';
14 import { NgModule } from '@angular/core';
15
16 import { AppComponent } from './app.component';
17 import { JsPlumbService } from "./services/jsplumb.service";
18 import { NodeComponent } from "./components/node/node.component";
19 import { ToolbarComponent } from "./components/toolbar/toolbar.component";
20 import { WorkflowService } from "./services/workflow.service";
21 import { DataAccessService } from "./services/data-access/data-access.service";
22 import { HttpService } from "./util/http.service";
23 import { SharedModule } from "./shared/shared.module";
24 import { InMemoryWebApiModule } from "angular-in-memory-web-api";
25 import { InMemoryDataService } from "./services/data-access/in-memory-data.service";
26 import { HttpModule } from "@angular/http";
27 import { RouterModule } from "@angular/router";
28 import { BroadcastService } from "./services/broadcast.service";
29 import { PropertiesComponent } from "./components/property/properties.component";
30 import { CanvasComponent } from "./components/canvas/canvas.component";
31 import { StartEventParametersComponent } from "./components/property/start-event-parameters/start-event-parameters.component";
32 import { ParameterComponent } from "./components/parameter/parameter.component";
33 import { MenuComponent } from "./components/menu/menu.component";
34 import { MicroserviceDetailComponent } from "./components/menu/microservice/microservice-detail/microservice-detail.component";
35 import { MicroserviceComponent } from "./components/menu/microservice/microservice.component";
36 import { MicroserviceListComponent } from "./components/menu/microservice/microservice-list/microservice-list.component";
37 import { ModalModule } from "ngx-bootstrap/modal";
38 import { WorkflowConfigService } from "./services/workflow-config.service";
39
40 @NgModule({
41     declarations: [
42         AppComponent,
43         CanvasComponent,
44         MenuComponent,
45         MicroserviceComponent,
46         MicroserviceDetailComponent,
47         MicroserviceListComponent,
48         NodeComponent,
49         ParameterComponent,
50         PropertiesComponent,
51         StartEventParametersComponent,
52         ToolbarComponent,
53     ],
54     imports: [
55         BrowserModule,
56         HttpModule,
57         InMemoryWebApiModule.forRoot(InMemoryDataService),
58         ModalModule.forRoot(),
59         RouterModule.forRoot([]),
60         SharedModule,
61     ],
62     providers: [
63         BroadcastService,
64         DataAccessService,
65         HttpService,
66         JsPlumbService,
67         WorkflowConfigService,
68         WorkflowService
69     ],
70     bootstrap: [AppComponent]
71 })
72 export class AppModule { }