Skip to content

Instantly share code, notes, and snippets.

@bmfteixeira
Last active October 5, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmfteixeira/a45f41ef1beefceb0e70f6e461a3ad80 to your computer and use it in GitHub Desktop.
Save bmfteixeira/a45f41ef1beefceb0e70f6e461a3ad80 to your computer and use it in GitHub Desktop.
<template>
<div></div>
</template>
<script type="text/javascript">
import { GET_OBJECTS } from 'services/constants/action-types'
export default {
...
data () {
return {
currentObjects: []
}
},
methods: {
...mapActions('objects', {
getObjectsAction: GET_OBJECTS
}),
setObjects () {
return this.getObjectsAction()
.then((response) => {
this.currentObjects = response
})
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment