2018-06-13 18:34:10 +02:00
|
|
|
import { BrowserModule, Title } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { FormsModule } from '@angular/forms'; // <-- NgModel lives here
|
|
|
|
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
|
|
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
2018-06-16 18:05:46 +02:00
|
|
|
import { LoginComponent } from './users/login.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { UsersComponent } from './users/users.component';
|
2018-06-16 18:05:46 +02:00
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { ProjectorComponent } from './projector/projector.component';
|
2018-06-16 18:05:46 +02:00
|
|
|
import { ProjectorContainerComponent } from './projector/projector-container.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { MotionsComponent } from './motions/motions.component';
|
|
|
|
import { AgendaComponent } from './agenda/agenda.component';
|
|
|
|
import { SiteComponent } from './site/site.component';
|
2018-06-16 18:05:46 +02:00
|
|
|
import { StartComponent } from './site/start.component';
|
|
|
|
import { AlertComponent } from './site/alert.component';
|
|
|
|
import { AlertService } from './site/alert.service';
|
2018-06-13 18:34:10 +02:00
|
|
|
|
|
|
|
//add font-awesome icons to library.
|
|
|
|
//will blow up the code.
|
|
|
|
library.add(fas);
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
LoginComponent,
|
|
|
|
UsersComponent,
|
|
|
|
ProjectorComponent,
|
2018-06-16 18:05:46 +02:00
|
|
|
ProjectorContainerComponent,
|
2018-06-13 18:34:10 +02:00
|
|
|
MotionsComponent,
|
|
|
|
AgendaComponent,
|
|
|
|
SiteComponent,
|
|
|
|
StartComponent,
|
|
|
|
AlertComponent
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
HttpClientModule,
|
|
|
|
HttpClientXsrfModule.withOptions({
|
|
|
|
cookieName: 'OpenSlidesCsrfToken',
|
|
|
|
headerName: 'X-CSRFToken',
|
|
|
|
}),
|
|
|
|
FormsModule,
|
|
|
|
FontAwesomeModule,
|
|
|
|
AppRoutingModule
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
Title,
|
|
|
|
AlertService,
|
|
|
|
],
|
|
|
|
bootstrap: [
|
|
|
|
AppComponent
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|