File size: 1,779 Bytes
b7b370e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { DatePipe } from '@angular/common';

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ToastrModule } from 'ngx-toastr';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { CoreModule } from './core/core.module';
import { HistoryService } from './core/services/history.service';
import { AuthInterceptor } from './core/interceptors/auth.interceptor';
import { LogonComponent } from './features/logon/logon.component';
import { HomeComponent } from './features/home/home.component';
import { SidebarComponent } from './features/home/sidebar/sidebar.component';
import { NavbarComponent } from './features/home/navbar/navbar.component';
import { DocumentsComponent } from './features/home/documents/documents.component';
import { ChatComponent } from './features/home/chat/chat.component';


@NgModule({
  declarations: [
    AppComponent,
    LogonComponent,
    HomeComponent,
    SidebarComponent,
    NavbarComponent,
    DocumentsComponent,
    ChatComponent,
  ],
  imports: [
    AppRoutingModule,
    BrowserAnimationsModule,
    BrowserModule,
    CommonModule,
    CoreModule,
    FormsModule,
    HttpClientModule,
    ReactiveFormsModule,
    ToastrModule.forRoot(),
  ],
  providers: [HistoryService, DatePipe,
    {
    provide: HTTP_INTERCEPTORS,
    useClass: AuthInterceptor,
    multi: true,
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }