support set parameter for workflow
[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
34 @NgModule({
35     declarations: [
36         AppComponent,
37         CanvasComponent,
38         NodeComponent,
39         ParameterComponent,
40         PropertiesComponent,
41         StartEventParametersComponent,
42         ToolbarComponent,
43     ],
44     imports: [
45         BrowserModule,
46         HttpModule,
47         InMemoryWebApiModule.forRoot(InMemoryDataService),
48         RouterModule.forRoot([]),
49         SharedModule,
50     ],
51     providers: [
52         BroadcastService,
53         DataAccessService,
54         HttpService,
55         JsPlumbService,
56         WorkflowService
57     ],
58     bootstrap: [AppComponent]
59 })
60 export class AppModule { }