app.module.ts 1.98 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
import { NgModule, LOCALE_ID } from '@angular/core';
2 3 4 5 6 7
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { JsonPipe } from '@angular/common';
import { HttpModule } from '@angular/http';
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
Lukas Burgey's avatar
Lukas Burgey committed
8

9
// Other libs
10 11
import { StompRService } from '@stomp/ng2-stompjs';
import { CookieService } from 'ngx-cookie-service';
Lukas Burgey's avatar
Lukas Burgey committed
12

Lukas Burgey's avatar
Lukas Burgey committed
13

14
// Our stuff
Lukas Burgey's avatar
Lukas Burgey committed
15 16
//
// services
17
import { UserService } from './user.service';
Lukas Burgey's avatar
Lukas Burgey committed
18
import { LanguageService } from './language.service';
19
import { SnackBarService } from './snackbar.service';
Lukas Burgey's avatar
Lukas Burgey committed
20

Lukas Burgey's avatar
Lukas Burgey committed
21
// imports
22 23 24
import { DialoguesModule } from './dialogues/dialogues.module';
import { MaterialModule } from './material/material.module';
import { SharedModule } from './shared/shared.module';
Lukas Burgey's avatar
Lukas Burgey committed
25
import { SshkeysModule } from './sshkeys/sshkeys.module';
Lukas Burgey's avatar
Lukas Burgey committed
26 27

// declarations
28 29 30 31 32
import { AppComponent } from './app.component';
import { BodyComponent } from './body/body.component';
import { ServiceComponent } from './service/service.component';
import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component';
33
import { VoDataComponent } from './vo-data/vo-data.component';
Lukas Burgey's avatar
Lukas Burgey committed
34 35 36 37 38 39


@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
Lukas Burgey's avatar
Lukas Burgey committed
40
    FormsModule,
Lukas Burgey's avatar
Lukas Burgey committed
41
    HttpModule,
Lukas Burgey's avatar
Lukas Burgey committed
42 43 44 45 46
    HttpClientModule,
    HttpClientXsrfModule.withOptions({
      cookieName: 'csrftoken',
      headerName: 'HTTP_X_CSRFTOKEN',
    }),
Lukas Burgey's avatar
Lukas Burgey committed
47 48 49
    DialoguesModule,
    MaterialModule,
    SharedModule,
Lukas Burgey's avatar
Lukas Burgey committed
50
    SshkeysModule,
Lukas Burgey's avatar
Lukas Burgey committed
51 52 53
  ],
  declarations: [
    AppComponent,
Lukas Burgey's avatar
Lukas Burgey committed
54 55 56
    HeaderComponent,
    BodyComponent,
    FooterComponent,
Lukas Burgey's avatar
Lukas Burgey committed
57
    ServiceComponent,
58
    VoDataComponent,
Lukas Burgey's avatar
Lukas Burgey committed
59 60
  ],
  providers: [
Lukas Burgey's avatar
Lukas Burgey committed
61 62
    CookieService,
    UserService,
Lukas Burgey's avatar
Lukas Burgey committed
63
    LanguageService,
Lukas Burgey's avatar
Lukas Burgey committed
64
    SnackBarService,
65
    StompRService,
Lukas Burgey's avatar
Lukas Burgey committed
66
    JsonPipe,
Lukas Burgey's avatar
Lukas Burgey committed
67
  ],
Lukas Burgey's avatar
Lukas Burgey committed
68 69 70
  bootstrap: [
    AppComponent,
  ],
Lukas Burgey's avatar
Lukas Burgey committed
71 72
})
export class AppModule {
Lukas Burgey's avatar
Lukas Burgey committed
73
  constructor() {
Lukas Burgey's avatar
Lukas Burgey committed
74 75 76
  }
}