Ember.js Router App Architecture — How to have multiple nested view/controller pairs

后端 未结 1 2010
抹茶落季
抹茶落季 2021-02-03 14:38

I have an ember app and the concept of the outlet and connecting the outlet is fine, I get that. What I don\'t understand is how to have more than one view/controller view insid

相关标签:
1条回答
  • 2021-02-03 15:04

    Do you know you can name the outlets ? For example, in SplitView template, you can have one {{outlet inboxListView}}, one {{outlet contactsListView}} etc... when you do your connectOutlets stuff, you can do this like:

    splitViewController.connectOutlet({name: 'inboxList', outletName: 'inboxListView'})
    splitViewController.connectOutlet({name: 'contactsList', outletName: 'contactsListView'})
    

    and so on...

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