Mobile 集合嵌套模型表视图(Appcelerator合金)
我想知道是否有可能在Appcelerator Alloy的集合中包含嵌套模型 我有一个帖子列表,每个帖子都有嵌套的评论和喜欢的模型。我该怎么做呢 这是我的密码:Mobile 集合嵌套模型表视图(Appcelerator合金),mobile,backbone.js,titanium,appcelerator,titanium-alloy,Mobile,Backbone.js,Titanium,Appcelerator,Titanium Alloy,我想知道是否有可能在Appcelerator Alloy的集合中包含嵌套模型 我有一个帖子列表,每个帖子都有嵌套的评论和喜欢的模型。我该怎么做呢 这是我的密码: <Alloy> <Collection src="post"> <Window> <TableView id="table" dataCollection="post"> <TableViewRow class="row">
<Alloy>
<Collection src="post">
<Window>
<TableView id="table" dataCollection="post">
<TableViewRow class="row">
<Label text="{title}></Label>
****How Do I load list of comments and likes within the collection?****
****{comments}****
****{likes}*****
</TableViewRow>
</TableView>
</Window>
</Alloy>
appcelerator开发者网站上回答了这个问题:
As:现在无法通过绑定完成此操作,必须在控制器中手动完成。但是,一个类似的StackOverflow问题最近得到了回答,建议使用主干关联库: