Last active
October 5, 2017 17:52
-
-
Save bmfteixeira/a45f41ef1beefceb0e70f6e461a3ad80 to your computer and use it in GitHub Desktop.
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
<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