Last active
November 6, 2017 11:49
-
-
Save bmfteixeira/d9b96c1d4868bbedd44ad679b0fec851 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> | |
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