Interface IResourceClass

Index

Construct signatures

Methods

Construct signatures

constructor(dataOrParams?: any): T in ng.resource.IResourceClass<T>

Parameters

  • dataOrParams?: any optional

Returns

T in ng.resource.IResourceClass<T>

Methods

public delete(): T in ng.resource.IResourceClass<T>

Returns

T in ng.resource.IResourceClass<T>

public delete(params: Object): T in ng.resource.IResourceClass<T>

Parameters

  • params: Object

Returns

T in ng.resource.IResourceClass<T>

public delete(success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

  • success: Function
  • error?: Function optional

Returns

T in ng.resource.IResourceClass<T>

public delete(params: Object, success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public delete(params: Object, data: Object, success?: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public get(): T in ng.resource.IResourceClass<T>

Returns

T in ng.resource.IResourceClass<T>

public get(params: Object): T in ng.resource.IResourceClass<T>

Parameters

  • params: Object

Returns

T in ng.resource.IResourceClass<T>

public get(success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

  • success: Function
  • error?: Function optional

Returns

T in ng.resource.IResourceClass<T>

public get(params: Object, success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public get(params: Object, data: Object, success?: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public query(): IResourceArray

Returns

IResourceArray

public query(params: Object): IResourceArray

Parameters

  • params: Object

Returns

IResourceArray

public query(success: Function, error?: Function): IResourceArray

Parameters

  • success: Function
  • error?: Function optional

Returns

IResourceArray

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

Parameters

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

Returns

IResourceArray

public query(params: Object, data: Object, success?: Function, error?: Function): IResourceArray

Parameters

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

Returns

IResourceArray

public remove(): T in ng.resource.IResourceClass<T>

Returns

T in ng.resource.IResourceClass<T>

public remove(params: Object): T in ng.resource.IResourceClass<T>

Parameters

  • params: Object

Returns

T in ng.resource.IResourceClass<T>

public remove(success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

  • success: Function
  • error?: Function optional

Returns

T in ng.resource.IResourceClass<T>

public remove(params: Object, success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public remove(params: Object, data: Object, success?: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public save(): T in ng.resource.IResourceClass<T>

Returns

T in ng.resource.IResourceClass<T>

public save(data: Object): T in ng.resource.IResourceClass<T>

Parameters

  • data: Object

Returns

T in ng.resource.IResourceClass<T>

public save(success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

  • success: Function
  • error?: Function optional

Returns

T in ng.resource.IResourceClass<T>

public save(data: Object, success: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>

public save(params: Object, data: Object, success?: Function, error?: Function): T in ng.resource.IResourceClass<T>

Parameters

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

Returns

T in ng.resource.IResourceClass<T>