I am parsing a JSON data using axios to consume APIs with Vue.js. There is a field value 10
, after 20 mins it can be updated to become 11
.
I am following this code example: https://jsfiddle.net/jonataswalker/416oz6ga/
getFollowers() {
return new Promise((resolve, reject) => {
axios.get('https://api.github.com/users/octocat')
.then(response => resolve(response))
.catch(err => reject(error))
});
}
Similar to the followers
in the above example I want my value to change automatically in my front-end.
How can I update this value in the front-end? Any suggestions?