Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <table id="app">
    <template v-for="(p, index) in products">
      <tr>
        <th>Name</th>
        <th>QTY</th>
        <th>Total</th>
      </tr>
      <tr>
        <td>{{p.name}}</td>
        <td>
          <input v-on:keyup="calc(index)" type='text' v-model="p.qty" />
        </td>
        <td>
          <input type="text" readonly v-model='p.total' />
        </td>
      </tr>
    </template>
  </table>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers