X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tutorial;a=blobdiff_plain;f=src%2Fapp%2Fapp.module.ts;h=9fa5aad8346145e8a61e9f140cd7e9b346869f95;hp=2bc4940fda2ee668354d5e3cda3f766c9bcec679;hb=407dfe41df942c3079dee61e1fc1ed6094bb3bd5;hpb=02a4f5e131cbac6f4fb820fb8ddd9332892be703 diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2bc4940..9fa5aad 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -7,6 +7,7 @@ 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'; @NgModule({ declarations: [ @@ -14,13 +15,15 @@ import { ProductAlertsComponent } from './product-alerts/product-alerts.componen TopBarComponent, ProductListComponent, ProductDetailsComponent, - ProductAlertsComponent + ProductAlertsComponent, + CartComponent ], imports: [ BrowserModule, RouterModule.forRoot([ { path: '', component: ProductListComponent }, - { path: 'products/:productId', component: ProductDetailsComponent } + { path: 'products/:productId', component: ProductDetailsComponent }, + { path: 'cart', component: CartComponent } ]) ], providers: [],