[Vuejs]-Access data property vuejs2

0👍

Yes, you can access data property using this in Vue instance,

this.myObject.textValue = this.selected_language

If you want to update the data automatically when app is mounted then use created hook

var vm = new Vue({
    el: '#app',
    data: {
        myObject : {
                id: "",
                _class : "",
                contentType : "TEXT",
                textValue : "",
            },
            selected_language : "ENGLISH",
        },
    created: function(){
        this.myObject.textValue = this.selected_language
    }
})

Leave a comment