Backbone JS: can one view trigger updates in other views?

前端 未结 7 1169
失恋的感觉
失恋的感觉 2020-12-23 02:20

In my simple project I have 2 views - a line item view (Brand) and App. I have attached function that allows selecting multiple items:

var BrandView = Backbone.V         


        
相关标签:
7条回答
  • 2020-12-23 03:09

    Same as John has suggested above, the Mediator Pattern works really good in this scenario, as Addy Osmani summing this issue up again in Backbone fundamentals.

    Wound up using the Backbone.Mediator plugin which is simple and great, and makes my AMD View modules working together seamlessly =)

    0 讨论(0)
提交回复
热议问题