I was wondering if it was possible to included nested models in collections in Appcelerator Alloy?
I have a list of posts and each post has nested model of comments and likes. How do I go about doing that?
Here is my code:
<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>