mempool/frontend/src/app/app.module.ts

46 lines
1.7 KiB
TypeScript
Raw Normal View History

import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
2019-07-21 17:59:47 +03:00
import { NgModule } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './components/app/app.component';
import { ElectrsApiService } from './services/electrs-api.service';
import { StateService } from './services/state.service';
import { WebsocketService } from './services/websocket.service';
import { AudioService } from './services/audio.service';
2020-03-24 00:52:08 +07:00
import { SeoService } from './services/seo.service';
import { SharedModule } from './shared/shared.module';
import { StorageService } from './services/storage.service';
import { HttpCacheInterceptor } from './services/http-cache.interceptor';
import { LanguageService } from './services/language.service';
import { ShortenStringPipe } from './shared/pipes/shorten-string-pipe/shorten-string.pipe';
import { CapAddressPipe } from './shared/pipes/cap-address-pipe/cap-address-pipe';
2019-07-21 17:59:47 +03:00
@NgModule({
declarations: [
AppComponent,
],
imports: [
2020-11-07 04:30:52 +07:00
BrowserModule.withServerTransition({ appId: 'serverApp' }),
BrowserTransferStateModule,
2019-07-21 17:59:47 +03:00
AppRoutingModule,
HttpClientModule,
BrowserAnimationsModule,
SharedModule,
2019-07-21 17:59:47 +03:00
],
providers: [
ElectrsApiService,
StateService,
WebsocketService,
AudioService,
2020-03-24 00:52:08 +07:00
SeoService,
StorageService,
LanguageService,
ShortenStringPipe,
CapAddressPipe,
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true }
2019-07-21 17:59:47 +03:00
],
bootstrap: [AppComponent]
})
export class AppModule { }