I have a view and a model associated with it in the highway. Review the observations to change the model and change its display area accordingly. eg:
var Part = Bacbone.Model.extends({
defaults:{
partId = null,
manufacturer: null,
manufactureDate: null,
type: null
}
});
var PartsCollection = Backbone.Collection.extends({
model:Part;
)};
var Car = Backbone.Model.extends({
defaults:{
carModel: null,
carName: null,
color: null,
partsCollection: null
},
parse: function(response){
retrun response;
}
});
I have a structure similar to the one above. In my development strategy, I change the contents of the view when the model changes.
So now, for example, if I replace manufacturer "A" with manufacturer "B" for 1000 parts of 5000 parts. This should change my mind, and for this I listen to the event of the change of the model in my opinion. A modification of 1000 parts will result in 1000 event changes.
"manufacturerDate" Part, attor manufacturerDate, , , 1000 .
, . - ?