create

  • function
 

Simulate creating a Model with a fixture.

store.create(request, callback)

Parameters

  1. request {Object}

    Parameters for the request.

  2. callback {function()}

    A function to call with the created item.

store.create(request, callback) simulates a request to add an item to the store.

todosStore.create({
    url: "/todos"
}, function(){ });