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.destroy(request, callback) simulates a request to destroy an item from the server.

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