app.module.ts 1.97 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
import { AppComponent } from './app.component';
import { BodyComponent } from './body/body.component';
import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component';
32
import { VoDataComponent } from './vo-data/vo-data.component';
Lukas Burgey's avatar
Lukas Burgey committed
33
import { ServiceComponent } from './service/service.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
    HttpClientModule,
    HttpClientXsrfModule.withOptions({
      cookieName: 'csrftoken',
Lukas Burgey's avatar
Lukas Burgey committed
45
      headerName: 'X-CSRFToken',
Lukas Burgey's avatar
Lukas Burgey committed
46
    }),
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,
57
    VoDataComponent,
Lukas Burgey's avatar
Lukas Burgey committed
58
    ServiceComponent,
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
  }
}