backbone.js structuring nested views and models

前端 未结 5 1046
感情败类
感情败类 2020-12-02 03:51

Using backbone.js:

I have a top level ModelA that contains 2 attributes and 2 nested models, ModelB and ModelC. ModelB and ModelC each have 2 attributes as follows:<

5条回答
  •  失恋的感觉
    2020-12-02 04:43

    There is backbone plugin Backbone-relational.js which provides one-to-one, one-to-many and many-to-one relations between models for Backbone.

    I think this js will fulfill your needs. Vist BackboneRelational for more documentation.

提交回复
热议问题