forked from kuhnroyal/mat-datetimepicker
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.module.ts
More file actions
41 lines (37 loc) · 925 Bytes
/
app.module.ts
File metadata and controls
41 lines (37 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { registerLocaleData } from "@angular/common";
import localeDe from "@angular/common/locales/de";
import {
LOCALE_ID,
NgModule
} from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { MAT_DATE_LOCALE } from "@angular/material";
import { AppComponent } from "./app.component";
import { AppMomentModule } from "./moment/moment.module";
import { AppNativeModule } from "./native/native.module";
registerLocaleData(localeDe);
@NgModule({
providers: [
{
provide: LOCALE_ID,
useValue: "de-DE"
},
{
provide: MAT_DATE_LOCALE,
useExisting: LOCALE_ID
}
],
declarations: [
AppComponent
],
imports: [
BrowserAnimationsModule,
BrowserModule,
AppMomentModule,
AppNativeModule
],
bootstrap: [AppComponent]
})
export class AppModule {
}