0đź‘Ť
The problem is solved by adding v-if=“dataLoaded” on the tree component and set the dataLoaded property to true loading the data. Also, I had to use json object instead of json string.
- [Vuejs]-VueJS: Uncaught (in promise) TypeError: Cannot read property 'rol' of undefined
- [Vuejs]-How to display nested json array with v-for index loop
Source:stackexchange.com