Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 655 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 655 Bytes

modelfire

Model plugin that uses Firebase datasource

Installation

Install with component(1):

$ component install maiah/modelfire

Usage

var model = require('model'),
    modelfire = require('modelfire');

var Person = model('Person')
  .attr('name')
  .attr('job')
  .attr('address')
  .use(modelfire('https://myapp.firebaseio.com/'));

var gohan = new Person();

API

modelfire(firebaseLocation)

Enables your model to use and bind to the specified firebaseLocation.

License

MIT