Permalink
Browse files

Auto-generated commit -- Use registerLocaleData()

- import single locale from @angular/common/locales/XX (as unnamed default import)
- import registerLocaleDate from @angular/common
- call registerLocaleData with the locale in constructor of AppModule

(cherry picked from commit 6991fd08d23c696b7dab2f5470e03923e09cda7e)

----

Split imports from CommonModule

This is just for the Travis CI build because this line is used as placeholder and must remain unchanged...
@JohannesHoppe

(cherry picked from commit 039f0f4442cf3ecfc9a5e065cfde0228a28c4ea6)
Signed-off-by: Johannes Hoppe <johannes.hoppe@haushoppe-its.de>

Triggered by commit: angular-buch/book-monkey2@58ccfe5
Travis build: https://travis-ci.org/angular-buch/book-monkey2/builds/307872845
  • Loading branch information...
TheBuildbot committed Nov 27, 2017
1 parent 043a3d0 commit 0e924f6ab5e540db4ce4c98f2b95c44f42a5b775
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/app.module.ts
@@ -1,6 +1,8 @@
import { BrowserModule } from '@angular/platform-browser';
import { registerLocaleData } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { NgModule, LOCALE_ID } from '@angular/core';
import localeDe from '@angular/common/locales/de';

import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
@@ -26,4 +28,8 @@ import { BookResolver } from './shared/book-resolver.service';
],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {
constructor() {
registerLocaleData(localeDe);
}
}

0 comments on commit 0e924f6

Please sign in to comment.