Interface IResource

Index

Properties

Methods

Properties

public $promise: IPromise

the promise of the original server interaction that created this instance.

public $resolved: boolean

Methods

public $delete(): IPromise

Returns

IPromise

public $delete(params?: Object, success?: Function, error?: Function): IPromise

Parameters

  • params?: Object optional
  • success?: Function optional
  • error?: Function optional

Returns

IPromise

public $delete(success: Function, error?: Function): IPromise

Parameters

  • success: Function
  • error?: Function optional

Returns

IPromise

public $get(): IPromise

Returns

IPromise

public $get(params?: Object, success?: Function, error?: Function): IPromise

Parameters

  • params?: Object optional
  • success?: Function optional
  • error?: Function optional

Returns

IPromise

public $get(success: Function, error?: Function): IPromise

Parameters

  • success: Function
  • error?: Function optional

Returns

IPromise

public $query(): IPromise

Returns

IPromise

public $query(params?: Object, success?: Function, error?: Function): IPromise

Parameters

  • params?: Object optional
  • success?: Function optional
  • error?: Function optional

Returns

IPromise

public $query(success: Function, error?: Function): IPromise

Parameters

  • success: Function
  • error?: Function optional

Returns

IPromise

public $remove(): IPromise

Returns

IPromise

public $remove(params?: Object, success?: Function, error?: Function): IPromise

Parameters

  • params?: Object optional
  • success?: Function optional
  • error?: Function optional

Returns

IPromise

public $remove(success: Function, error?: Function): IPromise

Parameters

  • success: Function
  • error?: Function optional

Returns

IPromise

public $save(): IPromise

Returns

IPromise

public $save(params?: Object, success?: Function, error?: Function): IPromise

Parameters

  • params?: Object optional
  • success?: Function optional
  • error?: Function optional

Returns

IPromise

public $save(success: Function, error?: Function): IPromise

Parameters

  • success: Function
  • error?: Function optional

Returns

IPromise