app.module.ts 1.71 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
import {NgModule,Pipe,PipeTransform} 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 10 11
// Other libs
import {StompRService} from '@stomp/ng2-stompjs';
import {CookieService} from 'ngx-cookie-service';
Lukas Burgey's avatar
Lukas Burgey committed
12

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

Lukas Burgey's avatar
Lukas Burgey committed
19 20 21 22 23 24
// imports
import {DialoguesModule} from './dialogues/dialogues.module';
import {MaterialModule} from './material/material.module';
import {SharedModule} from './shared/shared.module';

// declarations
25
import {AppComponent} from './app.component';
Lukas Burgey's avatar
Lukas Burgey committed
26
import {BodyComponent} from './body/body.component';
27
import {ServiceComponent} from './service/service.component';
Lukas Burgey's avatar
Lukas Burgey committed
28 29
import {HeaderComponent} from './header/header.component';
import {FooterComponent} from './footer/footer.component';
Lukas Burgey's avatar
Lukas Burgey committed
30 31 32 33 34 35


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