import { CommonModule } from '@angular/common' ; import { HttpClientModule } from '@angular/common/http' ; import { ModuleWithProviders , NgModule } from '@angular/core' ; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome' ; import { InfiniteScrollModule } from 'ngx-infinite-scroll' ; import { DropzoneDirective } from './directives/dropzone.directive' ; import { ImagePipe } from './pipes/image.pipe' ; import { AngularMaterialModule } from './ui/angular-material.module' ; import { fontawesomeImports } from './ui/fontawesome-imports' ; fontawesomeImports ( ) ; @ NgModule ( { imports : [ CommonModule , HttpClientModule , AngularMaterialModule , InfiniteScrollModule , FontAwesomeModule , ] , declarations : [ DropzoneDirective , ImagePipe ] , exports : [ HttpClientModule , AngularMaterialModule , DropzoneDirective , InfiniteScrollModule , FontAwesomeModule , ImagePipe , ] , } ) export class SharedModule { public static forRoot ( ) { return { ngModule : SharedModule , providers : [ ImagePipe ] , } ; } }