Over a million developers have joined DZone.
Platinum Partner

Supermodel.js - Minimal Model Tracking For Backbone.js

· Web Dev Zone

The Web Dev Zone is brought to you in partnership with Mendix.  Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.


Supermodel. js is a Backbone.js component which provides minimal tracking for models. Often when creating Backbone.js applications, we have several models representing the same server object. 

If for example, there are several models representing a certain server object, where and some of them are fetching the data from the server while the data is being updated, this might cause synchronization problems and some models might have stale data.

This is where Supermodel.js steps in.  It resolves those synchronization problems by extending Backbone.Model with Supermodel.Model which handles the tracking and creation of individual models.

Requirements: Backbone.js
Demo:http:/ / pathable. github. com/ supermodel/
License: MIT License

The Web Dev Zone is brought to you in partnership with Mendix.  Learn more about The Essentials of Digital Innovation and how it needs to be at the heart of every organization.


Published at DZone with permission of Hirvesh Munogee , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}