Global

Methods

fetch()

Fetch models. If no more models are available, the current page will be filled by replicas of the original collection's items.

Source:

hasPrev()

Source:

prevPage()

Source:

ResourceFactory(options)

Resource Factory

Parameters:
Name Type Description
options Object
Properties
Name Type Description
url String

root url for the resource collection

idParams Array

params that represent the resource id

Source:
Example
var MyResource = new Resource({url: '/myresources'});
// MyResource now works with the /myresources endpoint
MyResource.query();