-
Notifications
You must be signed in to change notification settings - Fork 84
/
app.module.ts
37 lines (33 loc) · 1.07 KB
/
app.module.ts
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
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/core';
import { AppComponent } from './app.component';
import { AppMomentModule } from './moment/moment.module';
import { AppNativeModule } from './native/native.module';
import { FooterComponent } from './layout/footer/footer.component';
import { HeaderComponent } from './layout/header/header.component';
registerLocaleData(localeDe);
@NgModule({
providers: [
{
provide: LOCALE_ID,
useValue: 'de-DE',
},
{
provide: MAT_DATE_LOCALE,
useExisting: LOCALE_ID,
},
],
declarations: [AppComponent, FooterComponent, HeaderComponent],
imports: [
BrowserAnimationsModule,
BrowserModule,
AppMomentModule,
AppNativeModule,
],
bootstrap: [AppComponent],
})
export class AppModule {}