Best pattern to have models listen to nested models and collections?

后端 未结 2 1574
孤街浪徒
孤街浪徒 2021-02-15 05:58

Using Backbone.js what is the best pattern to have models listen to all of their nested models and collections all the way down?

Should I put nested models/collections i

2条回答
  •  渐次进展
    2021-02-15 06:27

    I really like @nrabinowitz' answer. he covered all the right details.

    just wanted to toss out the idea of using something like Backbone.Relational which handles all this stuff for you: https://github.com/PaulUithol/Backbone-relational

提交回复
热议问题