import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { Routes , RouterModule } from '@angular/router' ; import { MaterialComponentsModule } from './materialcomponents.module' ; import { OrderComponent } from './storefront-components/order/order.component' ; import { SortPipe } from './pipes/sort.pipe' ; import { SafeHtmlPipe } from './pipes/safe-html.pipe' ; import { TruncatePipe } from './pipes/truncate.pipe' ; import { GetUserPipe } from './pipes/getUser.pipe' ; import { ObjectCountPipe } from './pipes/object-count.pipe' ; import { GetKeyPipe } from './pipes/get-key.pipe' ; import { SearchPipe } from './pipes/search.pipe' ; const pipes = [ GetUserPipe , GetKeyPipe , ObjectCountPipe , SafeHtmlPipe , SortPipe , TruncatePipe , SearchPipe ] ; @ NgModule ( { imports : [ CommonModule , RouterModule , MaterialComponentsModule ] , declarations : [ ... pipes , OrderComponent ] , exports : [ ... pipes , RouterModule ] } ) export class SharedModule { }