app.module.ts 1.77 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';
28 29
import {HeaderComponent} from './header/header.component';
import {FooterComponent} from './footer/footer.component';
30
import { VoComponent } from './vo/vo.component';
Lukas Burgey's avatar
Lukas Burgey committed
31 32 33 34 35 36


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