Skip to content
Permalink
ffecdcc433
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
60 lines (60 sloc) 2.32 KB
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { LoginComponent } from './auth/login/login.component';
import { SignupComponent } from './auth/signup/signup.component';
import { HomeComponent } from './home/home.component';
import { RegisterComponent } from './register/register.component';
import { BoatRacingMaterialModule } from './material.module';
import { AppRoutingModule } from './app-routing.module';
import { EventComponent } from './event/component/event.component';
import { HeaderComponent } from './header/header.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { FlatpickrModule } from 'angularx-flatpickr';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService } from './in-memory-data.service';
import {environment} from '../environments/environment';
import { AdminModule } from './admin/admin.module';
import { AccountComponent } from './account/component/account.component';
@NgModule({
declarations: [
AppComponent,
LoginComponent,
HomeComponent,
RegisterComponent,
EventComponent,
HeaderComponent,
SignupComponent,
AccountComponent
],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
BoatRacingMaterialModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
NgbModalModule,
AdminModule,
FlatpickrModule.forRoot(),
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
}),
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
// and returns simulated server responses.
// Remove it when a real server is ready to receive requests.
environment.production ? [] : HttpClientInMemoryWebApiModule.forRoot(
InMemoryDataService, { dataEncapsulation: false }
)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }