Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue access computed property in data

module.exports = {
	data: function() {
    	return {
        	foo: ''
        }
    },
    computed: {
    	bar() {
        	return 'I am bar'
        }
    },
  	created() {
    	this.foo = this.bar
    }
}
 
PREVIOUS NEXT
Tagged: #vue #access #computed #property #data
ADD COMMENT
Topic
Name
9+4 =