Categories
Mastering Development

How can I make data, methods and computed globally in vue?

My code like this : <template> <v-layout column justify-center align-center > <v-flex xs12 sm8 md6 > … </v-flex> </v-layout> </template> export default { data () { return { currentDate: this.$moment().format(‘YYYY-MM-DD’) } }, computed: { birthdayFormatted () { return this.formatBirthday(this.birthday) }, }, methods: { formatBirthday (date) { if (!date) { return null } const d = […]