Created
August 10, 2016 19:43
-
-
Save plcosta/1f1281b04bfbb0008a28630003b232c1 to your computer and use it in GitHub Desktop.
Vuejs v-for with index
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
<div class="col-md-4" v-for="(index, group) in wards" track-by="$index"> | |
<div class="ibox"> | |
<div class="ibox-title"><strong>{{ index }}</strong></div> | |
<div class="ibox-content"> | |
<div class="col-md-2 bed" v-for="patient in group"> | |
<a v-link="" v-if="patient.id" class="bed-default">{{ patient.bed_id }}</a> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment