[Vuejs]-HTML in Vue.js not updating after axios get request updates object's property

5👍

The property serial is never declared on the vue instance and therefore is not reactive.

You could use Vue.set(this.data_object, "serial", response.data) this registers it with vue so it will add observers to this variable and it will become reactive

or

declare the serial property on the data object

 data(){
    return{
        data_object: {
            serial: ""
        },
    }
  },

Here’s a link about reactivity in Vue

Leave a comment