s3e40 alternate v-for in template
This commit is contained in:
parent
f5d55427cb
commit
24a8cc7559
@ -12,6 +12,11 @@
|
||||
({{i+1}}) {{ ingredient }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<template v-for="(ingredient, index) in ingredients">
|
||||
<h1>{{ingredient}}</h1>
|
||||
<p>{{index}}</p>
|
||||
</template>
|
||||
</div>
|
||||
<script src="app.js" charset="utf-8"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user