import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HashLocationStrategy, LocationStrategy, registerLocaleData } from '@angular/common';
import { FormsModule } from '@angular/forms';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FamilyComponent } from './family/family.component';
import { AgeComponent } from './age/age.component';
import { JobComponent } from './job/job.component';
import { IncomeComponent } from './income/income.component';
import { LoanComponent } from './loan/loan.component';
import { SocialSecurityComponent } from './social-security/social-security.component';
import { HealthComponent } from './health/health.component';
import { ChildrenHealthComponent } from './children-health/children-health.component';
import { DiseaseComponent } from './disease/disease.component';
import { SmokingComponent } from './smoking/smoking.component';
import { LiveComponent } from './live/live.component';
import { TransitComponent } from './transit/transit.component';
import { Transit1Component } from './transit1/transit1.component';
import { Transit2Component } from './transit2/transit2.component';
import { Transit3Component } from './transit3/transit3.component';

import { HttpClientModule } from '@angular/common/http'
import { CommonService } from './common.service'
import { LocalStorage } from './local.storage';
import { SpecialMmhComponent } from './special-mmh/special-mmh.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import zh from '@angular/common/locales/zh'
import { NzSliderModule } from 'ng-zorro-antd/slider';
import { NzIconModule } from 'ng-zorro-antd/icon';

registerLocaleData(zh);
@NgModule({
  declarations: [
    AppComponent,
    FamilyComponent,
    AgeComponent,
    JobComponent,
    IncomeComponent,
    LoanComponent,
    SocialSecurityComponent,
    HealthComponent,
    ChildrenHealthComponent,
    DiseaseComponent,
    SmokingComponent,
    LiveComponent,
    TransitComponent,
    Transit1Component,
    Transit2Component,
    Transit3Component,
    SpecialMmhComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    AppRoutingModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzSliderModule,
    NzIconModule
  ],
  providers: [CommonService, LocalStorage, { provide: LocationStrategy, useClass: HashLocationStrategy }, { provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule {
}
