feat: add date adapter provider
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
import {ApplicationConfig, LOCALE_ID} from '@angular/core';
|
||||
import {provideRouter} from '@angular/router';
|
||||
|
||||
import {routes} from './app.routes';
|
||||
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||
import {provideHttpClient} from "@angular/common/http";
|
||||
import {provideToastr} from "ngx-toastr";
|
||||
import {MAT_DATE_LOCALE} from "@angular/material/core";
|
||||
import {MAT_DATE_LOCALE, provideNativeDateAdapter} from "@angular/material/core";
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@ -24,6 +23,7 @@ export const appConfig: ApplicationConfig = {
|
||||
autoDismiss: true,
|
||||
maxOpened: 5
|
||||
}),
|
||||
provideNativeDateAdapter(),
|
||||
{ provide: LOCALE_ID, useValue: 'ru' },
|
||||
{ provide: MAT_DATE_LOCALE, useValue: 'ru' }]
|
||||
};
|
||||
|
Reference in New Issue
Block a user