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