There are two ways to bootstrap an Ivy app: with `platformBrowserDynamic().bootstrapModule` and `renderComponent`. To distinguish between these two approaches we call the `platformBrowserDynamic().bootstrapModule` way `ivy-compat` and the `renderComponent` way just `ivy`. PR Close #28372
22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { LOCALE_ID, NgModule } from '@angular/core';
|
|
import { registerLocaleData } from '@angular/common';
|
|
import localeFr from '@angular/common/locales/fr';
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
// adding this code to detect issues like https://github.com/angular/angular-cli/issues/10322
|
|
registerLocaleData(localeFr);
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports: [
|
|
BrowserModule
|
|
],
|
|
providers: [{ provide: LOCALE_ID, useValue: 'fr' }],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|