Options
All
  • Public
  • Public/Protected
  • All
Menu

default data service for this App

export
deprecated

see https://github.com/BryanWilhite/songhay-ng-workspace/issues/8#issuecomment-472557958

Hierarchy

  • AppDataService

Index

Constructors

constructor

Properties

Private client

client: Http

isError

isError: boolean

Returns true when the last API promise is rejected.

isLoaded

isLoaded: boolean

Returns true when the last API call loaded data without any errors.

isLoading

isLoading: boolean

Returns true when the API call is promising.

Methods

getExecutor

  • getExecutor(uri: string, executorAction?: function, requestArgs?: RequestOptionsArgs): executor
  • gets the executor for the constructor of @type {Promise}

    Parameters

    • uri: string
    • Optional executorAction: function
        • (response: Response, reject?: any): void
        • Parameters

          • response: Response
          • Optional reject: any

          Returns void

    • Optional requestArgs: RequestOptionsArgs

    Returns executor

initializeLoadState

  • initializeLoadState(): void

loadJson

  • loadJson<TFromJson>(uri: string, responseAction: function, requestArgs?: RequestOptionsArgs): Promise<Response>
  • loads JSON from the specified URI

    Type parameters

    • TFromJson

    Parameters

    • uri: string
    • responseAction: function
        • (json: TFromJson, reject?: any): void
        • Parameters

          • json: TFromJson
          • Optional reject: any

          Returns void

    • Optional requestArgs: RequestOptionsArgs

    Returns Promise<Response>

Generated using TypeDoc