Standalone app is working
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import { enableProdMode, LOCALE_ID, isDevMode, importProvidersFrom } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
|
||||
import { environment } from './environments/environment';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
@@ -13,6 +10,10 @@ import { LoaderInterceptor } from './app/interceptors/loader.interceptor';
|
||||
import { HTTP_INTERCEPTORS, withInterceptorsFromDi, provideHttpClient } from '@angular/common/http';
|
||||
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
||||
import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
|
||||
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
||||
import localePl from '@angular/common/locales/pl';
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
registerLocaleData(localePl);
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
@@ -25,10 +26,11 @@ bootstrapApplication(AppComponent, {
|
||||
// Register the ServiceWorker as soon as the application is stable
|
||||
// or after 30 seconds (whichever comes first).
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
})),
|
||||
}),
|
||||
MatBottomSheetModule),
|
||||
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS] },
|
||||
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } },
|
||||
{ provide: LOCALE_ID, useValue: 'pl-PL' },
|
||||
{ provide: LOCALE_ID, useValue: 'pl' },
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: LoaderInterceptor,
|
||||
|
||||
Reference in New Issue
Block a user