Skip to content

Instantly share code, notes, and snippets.

@youzipi
Last active August 15, 2017 07:03
Show Gist options
  • Save youzipi/eae7d5409a80ed2020b3873b805ec963 to your computer and use it in GitHub Desktop.
Save youzipi/eae7d5409a80ed2020b3873b805ec963 to your computer and use it in GitHub Desktop.
<ul v-for="(item,key,index) in relatedProducts">
<h2>{{ key }}</h2>
<li v-for="(p,p_index) in item">
{{ p.name }}
</li>
</ul>
//
relatedProducts = {
'menu1':[{},...
],
'menu2':[{},...
],
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment