137
rated 0 times
[
140]
[
3]
/ answers: 1 / hits: 17050
/ 9 Years ago, mon, january 11, 2016, 12:00:00
I have a Vue.js app of which I have a couple of components for, just to handle some repetitive tasks.
I'm also fetching data from an AJAX request.
What I'd like some input on is if there is an event that fires after Vue data (treeData
and flatTreeData
) has been updated and actioned so I can perform any additional actions?
var app = new Vue({
el: 'body',
data: {
treeData: {items: {}},
flatTreeData: [],
},
});
$.getJSON('./paths.json').done(function(data) {
// apply the file structure to the vue app
demo.treeData = data;
demo.flatTreeData = flattenTree(data);
});
More From » vue.js