how to count the depth of childrens of an array – Vue.js
I would like the calculate depth method to calculate the depth correctly and instead it is calculating in reverse assigning the first element with depth 2, the second with depth 1 and the third with depth 0, perhaps I need to create a new method where it receives the revisionData and then see item by item.
Vue.js – getElementById keeps returning null
This is my JS code: