app.module.ts 2.59 KB
//#region MODULES
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TooltipModule } from 'ngx-bootstrap/tooltip';
import { PopoverModule } from 'ngx-bootstrap/popover';
//#endregion

//#region Keyboard
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatButtonModule } from '@angular/material/button';
import { MatKeyboardModule } from '@ngx-material-keyboard/core';
//#endregion

//#region COMPONENTS
import { AppComponent } from './app.component';
import { HeaderComponent } from './components/header/header.component';
import { SidebarComponent } from './components/sidebar/sidebar.component';
import { HomeComponent } from './components/home/home.component';
import { InicioComponent } from './components/inicio/inicio.component';
import { BusquedaProductosComponent } from './components/busqueda-productos/busqueda-productos.component';
import { ConfirmacionCarritoComponent } from './components/confirmacion-carrito/confirmacion-carrito.component';
import { MasterComponent } from './components/master/master.component';
import { PopoverPromosComponent } from './components/popover-promos/popover-promos.component';
import { PopoverSinonimosComponent } from './components/popover-sinonimos/popover-sinonimos.component';
import { AmbImagenesComponent } from './components/amb-imagenes/amb-imagenes.component';
import { PagoComponent } from './components/pago/pago.component';
import { CancelarCompraComponent } from './components/cancelar-compra/cancelar-compra.component';
import { MensajeFinalComponent } from './components/mensaje-final/mensaje-final.component';
//#endregion

@NgModule({
  declarations: [
    AppComponent,
    HeaderComponent,
    SidebarComponent,
    HomeComponent,
    InicioComponent,
    BusquedaProductosComponent,
    ConfirmacionCarritoComponent,
    MasterComponent,
    PopoverPromosComponent,
    PopoverSinonimosComponent,
    AmbImagenesComponent,
    PagoComponent,
    CancelarCompraComponent,
    MensajeFinalComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    FormsModule,
    ReactiveFormsModule,
    ReactiveFormsModule.withConfig({ warnOnNgModelWithFormControl: 'never' }),
    TooltipModule.forRoot(),
    PopoverModule.forRoot(),
    BrowserAnimationsModule,
    MatKeyboardModule,
    MatButtonModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }