Created
December 28, 2017 12:41
-
-
Save sadick254/5917699771cc12b017bdca50f5cfcf26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export default { | |
name: 'some-component', | |
data () { | |
return { | |
name: 'sadick' | |
} | |
}, | |
methods: { | |
getUsername () { | |
this.$store.dispatch('getUsernameFromAPI') | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment