findAllData

  • typedef
can.Model.findAllData

{function(params)}

 

Retrieves a list of items for models, typically by making an Ajax request.

function(params)

Parameters

  1. params {Object}

    Specifies the list to be retrieved.

Returns

{can.Deferred}

A deferred that resolves to a data structure that can be understood by models.

Use

Typically, findAll is implemented with a "string" or ajax settings object like:

findAll: "GET /tasks"

or

findAll: {url: "/tasks", dataType: "custom"}

can.Model.setup converts