Interface IPromise

Hierarchy

Index

Properties

Methods

Properties

public $object: T in restangular.IPromise<T>

Methods

public call(methodName: string, params?: any): IPromise

Parameters

  • methodName: string
  • params?: any optional

Returns

IPromise

public catch(onRejected: (reason: any) => ng.IHttpPromise<TResult>): IPromise

Parameters

  • onRejected: (reason: any) => ng.IHttpPromise<TResult>

Returns

IPromise

public catch(onRejected: (reason: any) => ng.IPromise<TResult>): IPromise

Parameters

  • onRejected: (reason: any) => ng.IPromise<TResult>

Returns

IPromise

public catch(onRejected: (reason: any) => TResult): IPromise

Parameters

  • onRejected: (reason: any) => TResult

Returns

IPromise

public finally(finallyCallback: () => any): IPromise

Parameters

  • finallyCallback: () => any

Returns

IPromise

public get(fieldName: string): IPromise

Parameters

  • fieldName: string

Returns

IPromise

public then(successCallback: (promiseValue: T) => ng.IHttpPromise<TResult>, errorCallback?: (reason: any) => any, notifyCallback?: (state: any) => any): IPromise

Parameters

  • successCallback: (promiseValue: T) => ng.IHttpPromise<TResult>
  • errorCallback?: (reason: any) => any optional
  • notifyCallback?: (state: any) => any optional

Returns

IPromise

public then(successCallback: (promiseValue: T) => ng.IPromise<TResult>, errorCallback?: (reason: any) => any, notifyCallback?: (state: any) => any): IPromise

Parameters

  • successCallback: (promiseValue: T) => ng.IPromise<TResult>
  • errorCallback?: (reason: any) => any optional
  • notifyCallback?: (state: any) => any optional

Returns

IPromise

public then(successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult, notifyCallback?: (state: any) => any): IPromise

Parameters

  • successCallback: (promiseValue: T) => TResult
  • errorCallback?: (reason: any) => TResult optional
  • notifyCallback?: (state: any) => any optional

Returns

IPromise