2022-05-12 11:53:03 -07:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2022-05-13 16:58:42 -07:00
|
|
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
2022-05-12 11:53:03 -07:00
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
2022-05-12 16:52:52 -07:00
|
|
|
import { CoreModule } from './core/core.module';
|
|
|
|
import { ShopModule } from './shop/shop.module';
|
2022-05-13 15:33:15 -07:00
|
|
|
import { HomeModule } from './home/home.module';
|
2022-05-13 16:58:42 -07:00
|
|
|
import { ErrorInterceptor } from './core/interceptors/error.interceptor';
|
2022-05-12 11:53:03 -07:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2022-05-12 16:52:52 -07:00
|
|
|
AppComponent
|
2022-05-12 11:53:03 -07:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
AppRoutingModule,
|
|
|
|
BrowserAnimationsModule,
|
2022-05-12 16:52:52 -07:00
|
|
|
HttpClientModule,
|
|
|
|
CoreModule,
|
2022-05-13 15:33:15 -07:00
|
|
|
HomeModule
|
2022-05-12 11:53:03 -07:00
|
|
|
],
|
2022-05-13 16:58:42 -07:00
|
|
|
providers: [
|
|
|
|
{provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true}
|
|
|
|
],
|
2022-05-12 11:53:03 -07:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|