Created
January 24, 2018 19:16
-
-
Save matthieu-D/82afe1d9526d0535d94af29d85bb2b76 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
import Vue from "vue"; | |
export default Vue.extend({ | |
data () { | |
return { | |
msg: 'Welcome to Your Vue.js App' | |
} | |
}, | |
methods: { | |
// Careful of () => | |
showFirstThis: function() { | |
console.log('Basic function', this); | |
}, | |
showSecondThis: () => { | |
console.log('Fat arrow', this); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment