Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mobile 集合嵌套模型表视图(Appcelerator合金)_Mobile_Backbone.js_Titanium_Appcelerator_Titanium Alloy - Fatal编程技术网

Mobile 集合嵌套模型表视图(Appcelerator合金)

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">

我想知道是否有可能在Appcelerator Alloy的集合中包含嵌套模型

我有一个帖子列表,每个帖子都有嵌套的评论和喜欢的模型。我该怎么做呢

这是我的密码:

 <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问题最近得到了回答,建议使用主干关联库: