81 lines
2.4 KiB
TypeScript
81 lines
2.4 KiB
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
import {HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
|
|
import { GamesService } from './games.service';
|
|
import { AbstractControl } from '@angular/forms';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { GameGridComponent } from './game-grid/game-grid.component';
|
|
import { AppRoutingModule } from './/app-routing.module';
|
|
import { ViewCardComponent } from './view-card/view-card.component';
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
import {MatCardModule} from '@angular/material';
|
|
import {MatToolbarModule} from '@angular/material/toolbar';
|
|
import {MatMenuModule} from '@angular/material/menu';
|
|
import {MatIconModule} from '@angular/material/icon';
|
|
import {MatButtonModule} from '@angular/material/button';
|
|
import {MatInputModule} from '@angular/material/input';
|
|
import {MatPaginatorModule} from '@angular/material/paginator';
|
|
import {MatFormFieldModule} from '@angular/material/form-field';
|
|
|
|
|
|
import { LoginComponent } from './login/login.component';
|
|
import { RegisterComponent } from './register/register.component';
|
|
|
|
import { RegistrationService } from './registration.service';
|
|
import { UsernameValidator } from './validators/username.validator'
|
|
import { EmailValidator } from './validators/email.validator'
|
|
|
|
// used to create fake backend
|
|
import { fakeBackendProvider } from './_helpers/index';
|
|
|
|
import { AlertComponent } from './_directives/index';
|
|
import { AuthGuard } from './_guards/index';
|
|
import { AlertService, AuthenticationService, UserService } from './_services/index';
|
|
|
|
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
GameGridComponent,
|
|
ViewCardComponent,
|
|
LoginComponent,
|
|
RegisterComponent,
|
|
AlertComponent,
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
HttpClientModule,
|
|
ReactiveFormsModule,
|
|
BrowserAnimationsModule,
|
|
MatCardModule,
|
|
MatToolbarModule,
|
|
MatMenuModule,
|
|
MatIconModule,
|
|
MatButtonModule,
|
|
MatInputModule,
|
|
MatPaginatorModule,
|
|
MatFormFieldModule
|
|
],
|
|
providers: [
|
|
GamesService,
|
|
RegistrationService,
|
|
UsernameValidator,
|
|
EmailValidator,
|
|
|
|
AuthGuard,
|
|
AlertService,
|
|
AuthenticationService,
|
|
UserService,
|
|
// provider used to create fake backend
|
|
fakeBackendProvider
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|