I think Backbone is a good choice, and Call is not necessarily here.
The requirement will simply help you organize your source code and possibly improve performance. I think you can start right away with Backbone, and that will be what you intend to use the most, and add the Requirement later.
As for the backbone, yes, it is easy to use to use your model with an existing MVC application, provided that it returns JSON. To load existing data, you will want to use the fetch method combined with url to adapt to existing code or to your own method.
As a rule, think about which models are displayed as views. The backbone helps you think this way: I show the models represented as JSON data in views that are created using HTML.
In addition, itβs very easy for the view level to reuse existing HTML, because the views are not attached to anything, nor to a JavaScript template, nor to anything.
A simple example:
<div id="user"> <span class="name">John</span> </div> var UserView = Backbone.View.extend({ render: function() { this.$el('.name').html(this.model.get('name')); } }); var userView = new UserView({el: $('#user')[0], model: ...});
In this example, div #user reflects the state of the User model with its name.
Also check out the Todo App in Backbone.
source share