[Vuejs]-How can I display vue data to Laravel blade?

0👍

Try setting the entire array to the data property directly.

getExpiredIosData: function() {
  axios.post('/expired')
  .then(response => {
      this.expiredIos = response.data; // <-- Set property directly
  });
}

Vue tracks all data properties, but tracking array changes is something it cannot do. You need to either use the build in array manipulation functions or replace the array entirely for vue to pick up the change.

https://v2.vuejs.org/v2/guide/list.html#Array-Change-Detection

Leave a comment