Skip to content

Instantly share code, notes, and snippets.

@tiagoeborsanyi
Created July 13, 2016 00:47
Show Gist options
  • Save tiagoeborsanyi/fbb23896c96b3cfd55152070baf6bb56 to your computer and use it in GitHub Desktop.
Save tiagoeborsanyi/fbb23896c96b3cfd55152070baf6bb56 to your computer and use it in GitHub Desktop.
<script>
import { incrementInfo } from '../../vuex/actions'
console.log(incrementInfo)
export default {
props: {
item: Object
},
vuex: {
actions: {
incrementInfo
}
}
}
</script>
<template>
<div class="row">
<a v-link="{path: '/create/', name: '/' }"><span @click="incrementInfo('texas')" class="glyphicon glyphicon-map-marker margem-marker" aria-hidden="true"></span></a>
<span>{{item.adress}} </span>
<span class="glyphicon glyphicon-trash margem-trash" aria-hidden="true"></span>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment