Trying to display JSON file results using Vue.js, with the goal of showing the result in a value.
Here is the code snippet:
data () {
return {
fetchData: function () {
var self = this;
self.$http.get("/api/casetotalactivation", function(data) {
self.items = data;
});
},
statsCards: [
{
type: 'warning',
icon: 'ti-server',
title: 'Cases',
value: this.items,
footerText: 'Updated now',
footerIcon: 'ti-reload'
}
],