42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
import {AppRoutingComponents, AppRoutingModule} from './app-routing.module';
|
|
import {AppComponent} from './app.component';
|
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
|
|
import {AppService} from "./app.service";
|
|
import {AppGuard} from "./app.guard";
|
|
import {AppRequestInterceptor} from "./app.request.interceptor";
|
|
import {AppSharedModule} from "./app.shared";
|
|
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
...AppRoutingComponents
|
|
],
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
BrowserAnimationsModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
HttpClientModule,
|
|
AppSharedModule
|
|
],
|
|
providers: [
|
|
AppService,
|
|
AppGuard,
|
|
{
|
|
provide: HTTP_INTERCEPTORS,
|
|
useClass: AppRequestInterceptor,
|
|
multi: true
|
|
},
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {
|
|
}
|