active-redux

Members

(static) Attr

Source:
See:

Methods

(static) bind(store)

Registers the store to the model for .where/.find/.all queries
Source:
Parameters:
Name Type Description
store Object A redux store
Example
import ActiveRedux from 'active-redux';
import store from './store';

ActiveRedux.bind(store);

(static) define(type, modelopt) → {Model}

Defines a model
Source:
Parameters:
Name Type Attributes Description
type string JSON-API type for the model
model Class <optional>
Class to extend
Returns:
Type:
Model
Example
const Person = ActiveRedux.define('people', class Person {});