Skip to content

Instantly share code, notes, and snippets.

@bmfteixeira
Last active November 6, 2017 11:49
Show Gist options
  • Save bmfteixeira/d9b96c1d4868bbedd44ad679b0fec851 to your computer and use it in GitHub Desktop.
Save bmfteixeira/d9b96c1d4868bbedd44ad679b0fec851 to your computer and use it in GitHub Desktop.
<template>
<div>
Lifecycle using object example
</div>
</template>
<script>
import { mapActions } from 'vuex'
import { actionTypes } from 'services/constants'
export default {
methods: {
...mapActions('app', {
getInitialConfig: actionTypes.APP_GET_CONFIG
})
},
created () {
this.getInitialConfig()
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment