Skip to content

Commit

Permalink
shared module
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickdey committed Jan 25, 2018
1 parent ec8feaf commit 4aeed01
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { RouterModule } from '@angular/router';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { CustomFormsModule } from 'ng2-validation';
import { DataTableModule } from 'angular-4-data-table';
import { SharedModule } from 'shared/shared.module';


import { AdminAuthGuardService } from './shared/services/admin-auth-guard.service';
Expand All @@ -32,8 +33,6 @@ import { LoginComponent } from './login/login.component';
import { ProductFormComponent } from './admin/product-form/product-form.component';
import { FormsModule } from '@angular/forms';
import { ProductFilterComponent } from './products/product-filter/product-filter.component';
import { ProductCardComponent } from './shared/components/product-card/product-card.component';
import { ProductQuantityComponent } from './shared/components/product-quantity/product-quantity.component';
import { ShoppingCartSummaryComponent } from './shopping-cart-summary/shopping-cart-summary.component';
import { ShippingFormComponent } from './shipping-form/shipping-form.component';
import { ListOrderViewComponent } from './list-order-view/list-order-view.component';
Expand All @@ -55,8 +54,6 @@ import { OrderViewComponent } from './order-view/order-view.component';
LoginComponent,
ProductFormComponent,
ProductFilterComponent,
ProductCardComponent,
ProductQuantityComponent,
ShoppingCartSummaryComponent,
ShippingFormComponent,
ListOrderViewComponent,
Expand All @@ -71,6 +68,7 @@ import { OrderViewComponent } from './order-view/order-view.component';
AngularFireDatabaseModule,
NgbModule.forRoot(),
DataTableModule,
SharedModule,
RouterModule.forRoot([
{ path: '', component: ProductsComponent },
{ path: 'Products', component: ProductsComponent },
Expand Down
20 changes: 20 additions & 0 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { ProductCardComponent } from './components/product-card/product-card.component';
import { ProductQuantityComponent } from './components/product-quantity/product-quantity.component';

@NgModule({
imports: [
CommonModule
],
declarations: [
ProductCardComponent,
ProductQuantityComponent
],
exports : [
ProductCardComponent,
ProductQuantityComponent
]
})
export class SharedModule { }

0 comments on commit 4aeed01

Please sign in to comment.