Created
August 16, 2019 02:47
-
-
Save parzibyte/ebae6bf3382a8317c988bab331eba3d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Uso de v-for en Vue.js</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" | |
crossorigin="anonymous"> | |
</head> | |
<body> | |
<main role="main" class="container"> | |
<div class="row"> | |
<div class="col-12" id="app"> | |
<h1>Uso de v-for en Vue.js</h1> | |
<a href="//parzibyte.me/blog">By Parzibyte</a> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Índice</th> | |
<th>Número</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr :key="indice" v-for="(numero, indice) in 5"> | |
<td>{{indice}}</td> | |
<td>{{numero}}</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</main> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"> | |
</script> | |
<script src="script.js"> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment