import { NgModule, APP_INITIALIZER } from '@angular/core';
import { CommonModule, LocationStrategy, HashLocationStrategy } from '@angular/common';

import { CommonsUIModule } from '@overflow/commons/ui/commons-ui.module';

import { CommonsModule } from '../../commons/commons.module';

import { PagesComponent } from './pages.component';
import { PagesRoutingModule } from './pages-routing.module';
import { DiscoveryConfigService } from '../../commons/service/discovery-config.service';

@NgModule({
  imports: [
    CommonModule,
    PagesRoutingModule,

    CommonsUIModule,
    CommonsModule,
  ],
  declarations: [
    PagesComponent,
  ],
  providers: [
    { provide: LocationStrategy, useClass: HashLocationStrategy },
    DiscoveryConfigService,
  ]
})
export class PagesModule { }
