|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { HomeComponent } from './components/home/home.component';
|
|
|
|
import { ProductItemComponent } from './components/product-item/product-item.component';
|
|
|
|
import { ProductListComponent } from './components/product-list/product-list.component';
|
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
import { NavbarComponent } from './components/navbar/navbar.component';
|
|
|
|
import { ProductItemDetailsComponent } from './components/product-item-details/product-item-details.component'
|
|
|
|
import { CartComponent } from './components/cart/cart.component'
|
|
|
|
import { ConfirmationComponent } from './components/confirmation/confirmation.component';
|
|
|
|
|
|
|
|
import { MatCommonModule } from '@angular/material/core';
|
|
|
|
import { MatButtonModule } from '@angular/material/button'
|
|
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
|
|
import { MatCardModule } from '@angular/material/card';
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
|
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
|
import { MatInputModule } from '@angular/material/input';
|
|
|
|
import { MatSnackBarModule } from '@angular/material/snack-bar'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
HomeComponent,
|
|
|
|
ProductItemComponent,
|
|
|
|
ProductListComponent,
|
|
|
|
NavbarComponent,
|
|
|
|
ProductItemDetailsComponent,
|
|
|
|
CartComponent,
|
|
|
|
ConfirmationComponent
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
AppRoutingModule,
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
HttpClientModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
|
|
|
|
MatCommonModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatButtonModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatSelectModule,
|
|
|
|
MatBadgeModule,
|
|
|
|
MatFormFieldModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatSnackBarModule
|
|
|
|
],
|
|
|
|
providers: [],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|