Skip to content

Instantly share code, notes, and snippets.

@murilolopes
Last active July 8, 2016 18:25
Show Gist options
  • Save murilolopes/cc678a7d99c890da44524dbcd9652058 to your computer and use it in GitHub Desktop.
Save murilolopes/cc678a7d99c890da44524dbcd9652058 to your computer and use it in GitHub Desktop.
<div class="ibox float-e-margins col-md-9">
<div class="ibox-content">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>-</th>
<th>Referência</th>
<th>Valor</th>
<th>Data de Vencimento</th>
<th>Juros</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr v-for="areceber in negociacao.areceber">
<td>
<input type="checkbox" value="areceber" v-model="titulos">
//negociacao.areceber é um array de "titulos" o qual quero selecionar alguns
//eu quero pegar o objeto(titulo, vulgo areceber) onde esse check for marcado
//e colocar em um array titulos para ser feito outras coisas
</td>
<td>@{{areceber.referencia}}</td>
<td>@{{areceber.valor}}</td>
<td>@{{areceber.data_vencimento}}</td>
<td>@{{areceber.juros | toReal }}</td>
<td>@{{areceber.juros + areceber.valor | fromReal}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment