-
Notifications
You must be signed in to change notification settings - Fork 20
/
app.module.ts
74 lines (71 loc) · 2.62 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {HttpModule} from '@angular/http';
import {AppComponent} from './app.component';
import {InMemoryWebApiModule} from 'angular-in-memory-web-api';
import {InMemoryDataService} from './model';
import {BotStatusHttpDataService} from './model/bot-status';
import {ExchangeHttpDataObservableService} from './model/exchange';
import {ExchangeHttpDataPromiseService} from './model/exchange/promise';
import {MarketHttpDataService} from './model/market';
import {DashboardModule} from './dashboard/dashboard.module';
import {BotDetailsModule} from './bot-details/bot-details.module';
import {ExchangeModule} from './exchange/exchange.module';
import {EmailAlertsModule} from './email-alerts/email-alerts.module';
import {AppRoutingModule} from './app-routing.module';
import {EmailAlertsHttpDataService} from './model/email-alerts';
import {EngineHttpDataService} from './model/engine';
import {StrategiesModule} from './strategies/strategies.module';
import {StrategyHttpDataService} from './model/strategy';
import {LoginModule} from './login/login.module';
import {AuthenticationService, CanActivateAuthGuard} from './shared';
import {EngineModule} from './engine/engine.module';
import {SettingsModule} from './settings/settings.module';
import {MarketsModule} from './markets/markets.module';
import {BotConfigHttpDataService} from './model/bot-config';
/**
* BX-bot UI main module.
*
* @author gazbert
*/
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
HttpModule,
// Comment line below out to use 'real' bxbot-ui-server Spring Boot backend
InMemoryWebApiModule.forRoot(InMemoryDataService, {put204: false, delete404: true}),
DashboardModule,
ExchangeModule,
EmailAlertsModule,
BotDetailsModule,
StrategiesModule,
MarketsModule,
EngineModule,
AppRoutingModule,
LoginModule,
SettingsModule
],
declarations: [
AppComponent
],
providers: [
BotStatusHttpDataService,
ExchangeHttpDataPromiseService,
ExchangeHttpDataObservableService,
MarketHttpDataService,
StrategyHttpDataService,
EmailAlertsHttpDataService,
EngineHttpDataService,
BotConfigHttpDataService,
AuthenticationService,
CanActivateAuthGuard
],
bootstrap: [AppComponent]
})
export class AppModule {
}