Skip to content

Commit

Permalink
Update RegionButtons.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanowon authored Jul 22, 2018
1 parent 2308593 commit 3e78ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ch11/countryapp/src/components/RegionButtons.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<button class="region" v-for="region in regions" :key="region.no"
<button class="region" v-for="region in regions" :key="region"
v-bind:class="isSelected(region)"
@click="changeRegion({region:region})">
{{region}}
Expand Down Expand Up @@ -39,4 +39,4 @@ export default {
<style>
button.region { text-align: center; width:80px; margin:2px; border:solid 1px gray; }
button.selected { background-color:purple; color:aqua; }
</style>
</style>

0 comments on commit 3e78ae4

Please sign in to comment.