import { NgModule , Injector } from '@angular/core' ; import { HttpModule , JsonpModule , Http , XHRBackend , RequestOptions } from '@angular/http' ; import { CookieService } from 'ngx-cookie-service' ; import { MessageService } from './message/message.service' ; import { NotifyService } from './notify/notify.service' ; import { LogService } from './log/log.service' ; import { UtilsService } from './utils/utils.service' ; import { TokenService } from './auth/token.service' ; import { PermissionCheckerService } from './auth/permission-checker.service' ; import { AbpSessionService } from './session/abp-session.service' ; import { AbpMultiTenancyService } from './multi-tenancy/abp-multi-tenancy.service' ; import { AbpHttpConfiguration , AbpHttp } from './abpHttp' ; import { FeatureCheckerService } from './features/feature-checker.service' ; import { LocalizationService } from './localization/localization.service' ; import { SettingService } from './settings/setting.service' ; export function abpHttpFactory ( xhrBackend , requestOptions , configuration , injector ) { return new AbpHttp ( xhrBackend , requestOptions , configuration ) ; } export let ABP_HTTP_PROVIDER = { provide : Http , useFactory : abpHttpFactory , deps : [ XHRBackend , RequestOptions , AbpHttpConfiguration ] } ; @ NgModule ( { imports : [ HttpModule , JsonpModule ] , declarations : [ ] , providers : [ CookieService , AbpHttpConfiguration , ABP_HTTP_PROVIDER , MessageService , NotifyService , LogService , UtilsService , TokenService , AbpSessionService , AbpMultiTenancyService , PermissionCheckerService , FeatureCheckerService , LocalizationService , SettingService ] } ) export class AbpModule { }