provides a set of interfaces for use in model classes, similar to active-model in ruby.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
doc
karma
scripts
spec
tasks/release
.gitignore
Gruntfile.js
LICENSE.md
README.md
bower.json
doc.md
package.json

README.md

super-model

Provides a set of interfaces for use in model classes, similar to active-model in ruby.

super-model's goal is to implement the kind of functionality provided by ruby's active-model to a-class-above. It is very early on, and currently only supports callbacks.

Current features:

  • Callbacks

Installation

From the command line:

bower install super-model

From the bower.json file

{
    "...
    "dependencies": {
        "super-model": "0.0.11"
    },
	...
}

In your html

<script type="text/javascript" src="bower_components/a-class-above/dist/a_class_above.js"></script>
<script type="text/javascript" src="bower_components/super-model/dist/super_model.js"></script>

or

<script type="text/javascript" src="bower_components/a-class-above/dist/a_class_above.min.js"></script>
<script type="text/javascript" src="bower_components/super-model/dist/super_model.min.js"></script>

Dependencies

super-model uses a-class-above for OOP. Please see the documentation there for more information.

Documentation

0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4