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. Download this Forrester Report to gain a better understanding of the low-code platform market and how to make a strategic platform selection you won’t regret.

 

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. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.

Topics:

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 }}