A modified, CommonJS version of Firebase's BackboneFire for AmpersandJS Models.
npm install ampfire-model
If you want it automatically added to your project's package.json use:
npm install ampfire-model --save
First you should require the module.
Next simply extend the AmpfireModel passing it the firebase url
var RealtimeModel = AmpfireModel
var realtimeModel = ;
The rest of the API is the same as that of BackboneFire
- lodash functions
- extend: lodash.object
- keys: lodash.object
- defaults: lodash.object
- result: lodash.object
- isObject: lodash.lang
- isFunction: lodash.lang
- difference: lodash/array/difference
- bind: lodash/function/bind
- each: lodash/collection/eac
This is all just a modification of the amazing work the Firebase team did on BackboneFire. It uses the awesome AmpersandJS Framework from the guys over at &yet.