Associations allows Backbone applications to model 1:1 & 1:N associations between application
models and collections. More importantly, applications can listen to any kind of change (change,
add, remove, reset, destroy) in this hierarchy using standard Backbone events and respond to
them. (views can re-render for example). The implementation strives to be tiny (3.6KB),
easy-to-understand, light-weight and fast.
Web applications leveraging the client-side-MVC
architectural style will benefit by using backbone-associations to define rich application
structure.
It was originally born out of a need to provide a simpler and speedier implementation of
Backbone-relational.
<script type="text/javascript" src="./js/underscore.js"></script> <script type="text/javascript" src="./js/backbone.js"></script> <script type="text/javascript" src="./js/backbone-associations.js"></script>Alternatively, cdnjs and jsdelivr has also hosted our library.
npm install backbone-associations
bower install backbone-associations
jam install backbone-associations