import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; /*CORE IMPORTS*/ import { BrowserModule, HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; /*PLUGINS IMPORTS*/ import { NgStringPipesModule } from 'ngx-pipes'; import { CookieService } from 'ngx-cookie-service'; import { TimeAgoPipe } from '../plugins/timeAgo.pipe'; import { TimeLimitPipe } from '../plugins/timeLimit.pipe'; import { FilterListPipe } from '../plugins/filterList.pipe'; /*FRONT IMPORTS*/ import { AppMaterialModule } from './app-material.module'; import { SmdFabSpeedDialComponent,SmdFabSpeedDialTrigger, SmdFabSpeedDialActions, } from '../plugins/fab-speed-dial'; /*MENU COMPONENT*/ import { MainHeaderComponent } from './menu/main-header.component'; import { MenuComponent } from './menu/menu.component'; import { MenuNavComponent } from './menu/menu-nav.component'; import { MenuShortcutComponent, IndexingGroupModalComponent } from './menu/menu-shortcut.component'; /*SEARCH*/ import { SearchHomeComponent } from './search/search-home.component'; /*SEARCH*/ import { BasketHomeComponent } from './basket/basket-home.component'; export class MyHammerConfig extends HammerGestureConfig { overrides = <any> { 'pinch': { enable: false }, 'rotate': { enable: false } } } @NgModule({ imports: [ CommonModule, BrowserModule, BrowserAnimationsModule, FormsModule, HttpClientModule, RouterModule, NgStringPipesModule, AppMaterialModule, ], declarations: [ MainHeaderComponent, MenuComponent, MenuNavComponent, MenuShortcutComponent, SearchHomeComponent, BasketHomeComponent, TimeAgoPipe, TimeLimitPipe, FilterListPipe, IndexingGroupModalComponent, SmdFabSpeedDialComponent, SmdFabSpeedDialTrigger, SmdFabSpeedDialActions, ], exports: [ CommonModule, MainHeaderComponent, MenuComponent, MenuNavComponent, MenuShortcutComponent, SearchHomeComponent, BasketHomeComponent, BrowserModule, BrowserAnimationsModule, FormsModule, ReactiveFormsModule, HttpClientModule, RouterModule, AppMaterialModule, TimeAgoPipe, TimeLimitPipe, FilterListPipe, NgStringPipesModule, SmdFabSpeedDialComponent, SmdFabSpeedDialTrigger, SmdFabSpeedDialActions, ], providers: [ CookieService, { provide: HAMMER_GESTURE_CONFIG, useClass: MyHammerConfig } ], entryComponents: [ IndexingGroupModalComponent ], }) export class SharedModule { }