import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { HomeComponent } from './components/home/home.component';
import { PostsComponent } from './components/posts/posts.component';
import { PostComponent } from './components/post/post.component';
import { DataloaderService } from 'app/services/dataloader.service';
import { HttpClientModule } from '@angular/common/http';
import { CvComponent } from './components/cv/cv.component';
import { PosttypepipePipe } from './pipes/posttypepipe.pipe';

import { TooltipModule } from 'ngx-bootstrap/tooltip';
import {SimpledatePipe} from './pipes/simpledate.pipe';
import { PosttagComponent } from './components/post/posttag/posttag.component';
import { ButtonsModule } from 'ngx-bootstrap/buttons';
import {FormsModule} from '@angular/forms';
import {StateService} from './services/state.service';
import { ContactComponent } from './components/contact/contact.component';
import { RootComponent } from './components/root/root.component';
import { LanguagetoggleComponent } from './components/languagetoggle/languagetoggle.component';
import { FullpostComponent } from './components/fullpost/fullpost.component';

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    PostsComponent,
    PostComponent,
    CvComponent,
    PosttypepipePipe,
    SimpledatePipe,
    PosttagComponent,
    ContactComponent,
    RootComponent,
    LanguagetoggleComponent,
    FullpostComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    FormsModule,
    TooltipModule.forRoot(),
    ButtonsModule.forRoot()
  ],
  providers: [DataloaderService, StateService],
  bootstrap: [
    AppComponent
  ]
})
export class AppModule { }
