learnin-some-vue/index.html
2018-04-13 23:03:06 -04:00

24 lines
540 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>
<template v-for="(ingredient, index) in ingredients">
<h1>{{ingredient}}</h1>
<p>{{index}}</p>
</template>
</div>
<script src="app.js" charset="utf-8"></script>
</body>
</html>