moving to standalone done.
This commit is contained in:
@@ -3,7 +3,6 @@ import { environment } from './environments/environment';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { provideServiceWorker } from '@angular/service-worker';
|
||||
import { provideAnimations } from '@angular/platform-browser/animations';
|
||||
import { AppRoutingModule } from './app/app-routing.module';
|
||||
import { BrowserModule, bootstrapApplication } from '@angular/platform-browser';
|
||||
import { AuthInterceptor } from './app/interceptors/auth.interceptor';
|
||||
import { LoaderInterceptor } from './app/interceptors/loader.interceptor';
|
||||
@@ -12,7 +11,9 @@ import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/mat
|
||||
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';
|
||||
import { DatePipe, registerLocaleData } from '@angular/common';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { APP_ROUTES } from './app/app.routes';
|
||||
registerLocaleData(localePl);
|
||||
|
||||
if (environment.production) {
|
||||
@@ -21,9 +22,9 @@ if (environment.production) {
|
||||
|
||||
bootstrapApplication(AppComponent, {
|
||||
providers: [
|
||||
provideRouter(APP_ROUTES),
|
||||
importProvidersFrom(
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
MatBottomSheetModule),
|
||||
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS] },
|
||||
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } },
|
||||
|
||||
Reference in New Issue
Block a user