X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fapp.module.ts;h=84a98b34bd05d643b158dac7aef5c1202431fa9f;hb=ff8b851d1f9bca8530fce588f58680113fc0c445;hp=a20e2d05dad50083ab128d130e7227c0959af853;hpb=bfe15f71205934d62304ce869cb81aeaec551593;p=examples%2Fangular-tutorial diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a20e2d0..84a98b3 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,24 +1,36 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; +import { ReactiveFormsModule } from '@angular/forms'; +import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { TopBarComponent } from './top-bar/top-bar.component'; import { ProductListComponent } from './product-list/product-list.component'; import { ProductDetailsComponent } from './product-details/product-details.component'; +import { ProductAlertsComponent } from './product-alerts/product-alerts.component'; +import { CartComponent } from './cart/cart.component'; +import { ShippingComponent } from './shipping/shipping.component'; @NgModule({ declarations: [ AppComponent, TopBarComponent, ProductListComponent, - ProductDetailsComponent + ProductDetailsComponent, + ProductAlertsComponent, + CartComponent, + ShippingComponent ], imports: [ BrowserModule, + ReactiveFormsModule, + HttpClientModule, RouterModule.forRoot([ { path: '', component: ProductListComponent }, - { path: 'products/:productId', component: ProductDetailsComponent } + { path: 'products/:productId', component: ProductDetailsComponent }, + { path: 'cart', component: CartComponent }, + { path: 'shipping', component: ShippingComponent } ]) ], providers: [],