Ampersand State Fluxible Mixin
This module implements the dehydrate
and rehydrate
methods for
Ampersand.js states and models to be used as Fluxible Stores.
Install
npm install --save ampersand-model-fluxible-mixin
Usage
Define your model with the mixin and set the storeName
for Fluxible:
// MyModel.js var Model = ;var mixin = ; var MyModel = Model; MyModelstoreName = "MyModel"; moduleexports = MyModel;
Then, register your model with Fluxible:
// app.js var Fluxible = ;var MyModel = ; var app = /* options... */ ; app; moduleexports = app;
You may then use Fluxible according to the API.
License
MIT