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

import {AppComponent} from './app.component';
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
import {AuthenticationService} from "./service/authentication.service";
import {UserService} from "./service/user.service";
import {AuthInterceptor} from "./interceptor/auth.interceptor";
import {AuthenticationGuard} from "./guard/authentication.guard";
import {LoginComponent} from './component/login/login.component';
import {RegisterComponent} from './component/register/register.component';
import {UserComponent} from './component/user/user.component';
import {AppRoutingModule} from './app-routing.module';
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {ManagementComponent} from './component/management/management.component';
import {UsersComponent} from './component/management/users/users.component';
import {SettingsComponent} from './component/management/settings/settings.component';
import {ProfileComponent} from './component/management/profile/profile.component';
import {UsersTableComponent} from './component/management/users/users-table/users-table.component';
import {UserViewComponent} from './component/management/users/user-view/user-view.component';
import {UserEditComponent} from './component/management/users/user-edit/user-edit.component';
import { ProfessorComponent } from './component/professor/professor.component';
import { MenuComponent } from './component/menu/menu.component';
import { HomeComponent } from './component/home/home.component';
import { BlogComponent } from './component/blog/blog.component';
import { EventComponent } from './component/event/event.component';
import { BlogService } from './service/blog.service';
import { AngularEditorModule } from '@josipv/angular-editor-k2';
import { NotificationModule } from './notification/notification.module';
import { EventFormComponent } from './component/event-form/event-form.component';
// import { PagesModule } from './pages/pages.module';





@NgModule({
  declarations: [
    AppComponent,
    // LoginComponent,
    // RegisterComponent,
    // UserComponent,
    // ManagementComponent,
    // UsersComponent,
    // SettingsComponent,
    // ProfileComponent,
    // UsersTableComponent,
    // UserViewComponent,
    // UserEditComponent,
    // ProfessorComponent,
    // MenuComponent,
    // HomeComponent,
    // BlogComponent,
    // EventComponent,
    // EventFormComponent

  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    NotificationModule,
    AppRoutingModule,
    // FormsModule,
    // ReactiveFormsModule,
    // AngularEditorModule,
    // PagesModule,

  ],
  // providers:[],
  providers: [Compiler,AuthenticationGuard, AuthenticationService, UserService,BlogService,
    {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
