azproduction / rivets-backbone-adapter

Backbone.js adapter for Rivets.js data-bind with nested models and collections support
http://azproduction.github.io/rivets-backbone-adapter/example/index.html
MIT License
48 stars 15 forks source link

Rivets.js Backbone Adapter

Backbone.js adapter for Rivets.js data-bind with nested models and collections support.

Rivets 0.5.x & 0.6.x & 0.7.x

This adapter is compatible with both rivets <= 0.5.x and >= 0.6.x, >= 0.7.x

If you are using rivets-backbone-adapter with bower:

Upgrading Adapter from 2.0.x to 2.1.x

In this release Adapter no longer gets/gets properties on Collections or any other non-Model objects. Old adapter resolves rv-smth="collection:models" as javascript code collection.models. New one will return undefined. The same is for setting properties on collection.

To avoid this issue please use native rivets.js .-adaptor. Eg rv-smth="collection.models" or rv-smth=".models" if you are passing collection as root models object.

Features

See example and code