import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { CoreModule } from '@core/core.module'; import { HTTPReqResInterceptor } from '@core/services/http-req-res.interceptor'; import { environment } from '@env'; import { LoadingBarRouterModule } from '@ngx-loading-bar/router'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @NgModule({ declarations: [AppComponent], imports: [ BrowserModule, BrowserAnimationsModule, AppRoutingModule, CoreModule, HttpClientModule, LoadingBarRouterModule, ], providers: [ { provide: 'BASE_URL', useValue: environment.baseurl }, { provide: HTTP_INTERCEPTORS, useClass: HTTPReqResInterceptor, multi: true, }, ], bootstrap: [AppComponent], }) export class AppModule {}