s3e41 looping objects

This commit is contained in:
Tyrel Souza 2018-04-13 23:07:37 -04:00
parent 24a8cc7559
commit ad14a999fa
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

@ -12,11 +12,24 @@
({{i+1}}) {{ ingredient }}
</li>
</ul>
<hr>
<template v-for="(ingredient, index) in ingredients">
<h1>{{ingredient}}</h1>
<p>{{index}}</p>
</template>
<hr>
<ul>
<li v-for="person in persons">
<div v-for="(value, key, index) in person">
{{key}}: {{value}} - {{index}}
</div>
</li>
</ul>
</div>
<script src="app.js" charset="utf-8"></script>
</body>