module author license version description NgModule import { JSONSearchParams } from './services/core/search.params' ; import { ErrorHandler } from './services/core/error.service' ; import { LoopBackAuth } from './services/core/auth.service' ; import { LoggerService } from './services/custom/logger.service' ; import { SDKModels } from './services/custom/SDKModels' ; import { InternalStorage , SDKStorage } from './storage/storage.swaps' ; import { HttpModule } from '@angular/http' ; import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CookieBrowser } from './storage/cookie.browser' ; import { StorageBrowser } from './storage/storage.browser' ; import { UserApi } from './services/custom/User' ; import { QuestionApi } from './services/custom/Question' ; import { AnswerApi } from './services/custom/Answer' ; module description @ NgModule ( { imports : [ CommonModule , HttpModule ] , declarations : [ ] , exports : [ ] , providers : [ ErrorHandler ] } ) export class SDKBrowserModule { static forRoot ( internalStorageProvider = { provide : InternalStorage , useClass : CookieBrowser } ) { return { ngModule : SDKBrowserModule , providers : [ LoopBackAuth , LoggerService , JSONSearchParams , SDKModels , UserApi , QuestionApi , AnswerApi , internalStorageProvider , { provide : SDKStorage , useClass : StorageBrowser } ] } ; } } /**
* Have Fun!!!
* - Jon
**/ export * from './models/index' ; export * from './services/index' ; export * from './lb.config' ; export * from './storage/storage.swaps' ; export { CookieBrowser } from './storage/cookie.browser' ; export { StorageBrowser } from './storage/storage.browser' ;