UNPKG

mean-guide-frontend

Version:

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

42 lines (40 loc) 1.34 kB
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AngularMaterialModule } from './angular-material.module'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { AuthInterceptor } from './auth/auth-interceptor'; import { ErrorInterceptor } from './error-interceptor'; import { ErrorComponent } from './error/error.component'; import { HeaderComponent } from './header/header.component'; import { PostsModule } from './posts/posts.module'; @NgModule({ declarations: [AppComponent, HeaderComponent, ErrorComponent], imports: [ AppRoutingModule, BrowserModule, ReactiveFormsModule, BrowserAnimationsModule, AngularMaterialModule, HttpClientModule, PostsModule, ], providers: [ { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true, }, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true, }, ], bootstrap: [AppComponent], entryComponents: [ErrorComponent], }) export class AppModule {}