learnin-some-vue/index.html
2018-04-13 23:07:37 -04:00

37 lines
762 B
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<script src="vue.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id='app'>
<ul>
<li v-for="(ingredient, i) in ingredients">
({{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>
</html>