Template two models in one view - Backbone/Marionette

后端 未结 2 1259
迷失自我
迷失自我 2021-02-09 02:08

I\'m trying to use two models in one view, and template using both of them. I\'m working with Marionette. Here is me initialization of the view:

main_app_layout.         


        
2条回答
  •  滥情空心
    2021-02-09 02:40

    try creating a complex model that contains the two models, this new model will have the other two as properties and you can acccess the properties of each one like this answer explains..

    Access Nested Backbone Model Attributes from Mustache Template

提交回复
热议问题