2017-05-10 11:04:06 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {Title, BrowserModule} from "@angular/platform-browser";
|
|
|
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
|
|
|
import {HttpModule} from '@angular/http';
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {LoginService} from "./services/login-service/login-service";
|
|
|
|
import {UserStore} from "./services/stores/user.store";
|
|
|
|
import {ShowErrorComponent} from './show-error/show-error.component';
|
|
|
|
import {APPLICATION_VALIDATORS} from './models/app-validators';
|
|
|
|
import {appRouting, routingComponents, routingProviders} from './app.routing';
|
|
|
|
import {AUTH_ENABLED} from './app.tokens';
|
|
|
|
import {UserService} from "./services/user-service/user.service";
|
|
|
|
import {UserItemComponent} from "./users/user-list/user-item.component";
|
|
|
|
import {SquadService} from "./services/squad-service/squad.service";
|
|
|
|
import {SquadStore} from "./services/stores/squad.store";
|
|
|
|
import {DecorationStore} from "./services/stores/decoration.store";
|
|
|
|
import {DecorationService} from "./services/decoration-service/decoration.service";
|
|
|
|
import {SquadItemComponent} from "./squads/squad-list/squad-item.component";
|
|
|
|
import {DecorationComponent} from "./decorations/decoration.component";
|
|
|
|
import {RankItemComponent} from "./ranks/rank-list/rank-item.component";
|
|
|
|
import {RankStore} from "./services/stores/rank.store";
|
|
|
|
import {RankService} from "./services/rank-service/rank.service";
|
|
|
|
import {DecorationItemComponent} from "./decorations/decoration-list/decoration-item.component";
|
|
|
|
import {AppConfig} from "./app.config";
|
|
|
|
import {LoginGuard} from "./login/login.guard";
|
|
|
|
import {AwardingService} from "./services/awarding-service/awarding.service";
|
|
|
|
import {HttpClient} from "./services/http-client";
|
2017-05-11 21:46:28 +02:00
|
|
|
import {ArmyService} from "./services/army-service/army.service";
|
2017-05-10 11:04:06 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [BrowserModule, FormsModule, ReactiveFormsModule, appRouting, HttpModule],
|
|
|
|
providers: [
|
|
|
|
HttpClient,
|
|
|
|
LoginService,
|
|
|
|
LoginGuard,
|
2017-05-11 21:46:28 +02:00
|
|
|
ArmyService,
|
2017-05-10 11:04:06 +02:00
|
|
|
UserService,
|
|
|
|
UserStore,
|
|
|
|
SquadService,
|
|
|
|
SquadStore,
|
|
|
|
DecorationService,
|
|
|
|
DecorationStore,
|
|
|
|
RankService,
|
|
|
|
RankStore,
|
|
|
|
AwardingService,
|
|
|
|
AppConfig,
|
|
|
|
Title,
|
|
|
|
routingProviders,
|
|
|
|
{provide: AUTH_ENABLED, useValue: true}
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
routingComponents,
|
|
|
|
DecorationComponent,
|
|
|
|
DecorationItemComponent,
|
|
|
|
RankItemComponent,
|
|
|
|
UserItemComponent,
|
|
|
|
SquadItemComponent,
|
|
|
|
ShowErrorComponent,
|
|
|
|
APPLICATION_VALIDATORS],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule {
|
|
|
|
}
|