[Vuejs]-How to reload fetched data from server when page loads (created) in Vue.JS

0👍

The problem was where I was calling the list() method.

h*m*logate: function (id) {

        var formData = new FormData();
        formData.set('id', id);

         axios.post('@Url.Action("Homologate")', formData)
            .then(response => {
   //THIS IS WHERE I NEEDED TO CALL  this.list();
            })
            .catch(error => { });

    }

Leave a comment