Work with models in your JavaScript
JavaScript CSS Ruby
Latest commit 5feb0bd Aug 23, 2013 @benpickles Merge pull request #31 from olly/pass-model-to-sort-by
Yield the Model to the sortBy callback



js-model is a library that allows you to work with models in your JavaScript.

In brief

Declare a model class:

var Todo = Model("todo")

Now create and manipulate model instances:

var todo = new Todo({ text: "do it" })
todo.attr("when", "now")

Documentation / download / more

For notes on getting started, persisting via REST or localStorage, using with Sammy, API documentation and download links visit the js-model docs site.

Suggestions / questions / issues / comments

Feel free to use Github issues for any of the above.


Copyright 2010-2012 Ben Pickles. See LICENSE for details.