[Vuejs]-Axios setting response data in vue component variable but variable not displaying data on browser

0๐Ÿ‘

โœ…

By setting up the project again, this issue has been resolved. And again I used the same approach for axios request like.

axios.get('http://127.0.0.1:8000/get/subjects')
.then((response)=>(this.subjects = response.data))
.catch(function(error){console.log(error)});

Thank you all for your effort.

Leave a comment