Skip to content

Instantly share code, notes, and snippets.

@bmfteixeira
Last active October 5, 2017 17:52
Show Gist options
  • Save bmfteixeira/df269f204e9d0eebd58b807a2bb1d3c9 to your computer and use it in GitHub Desktop.
Save bmfteixeira/df269f204e9d0eebd58b807a2bb1d3c9 to your computer and use it in GitHub Desktop.
<template>
<div></div>
</template>
<script type="text/javascript">
export default {
...
data () {
return {
currentObjects: [],
hasError: false
}
},
methods: {
getObjects () {
...
},
setObjects () {
const objectsOnStore = this.getObjects()
if(objectsOnStore) {
this.currentObjects = objectsOnStore
return true
} else {
this.hasError = true
return false
}
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment