import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { LOCALE_ID } from '@angular/core';

import { AppComponent } from './app.component';
import { MpcComponent } from './componentes/mpc/mpc.component';
import { C09Component } from './componentes/c09/c09.component';
import { C10Component } from './componentes/c10/c10.component';

import { registerLocaleData } from '@angular/common';
import es from '@angular/common/locales/es';
import { C11HijoComponent } from './componentes/c11-hijo/c11-hijo.component';
import { C11PadreComponent } from './componentes/c11-padre/c11-padre.component';
registerLocaleData(es);

@NgModule({
  declarations: [
    AppComponent,
    MpcComponent,
    C09Component,
    C10Component,
    C11HijoComponent,
    C11PadreComponent
  ],
  imports: [
    BrowserModule
  ],
  providers: [{ provide: LOCALE_ID, useValue: 'es' }],
  bootstrap: [AppComponent]
})
export class AppModule { }
