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.