I give front end data from back-end (Node.js and Firebase/firestore)
Data:
How does front-end (Vue.js) render this data as a tree, like this:
For further actions, you may consider blocking this person and/or reporting abuse
Louis -
Ryan Kahn (he/him) -
Teja Kummarikuntla -
Fatima Olasunkanmi-Ojo -
Once suspended, almantas88 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, almantas88 will be able to comment and publish posts again.
Once unpublished, all posts by almantas88 will become hidden and only accessible to themselves.
If almantas88 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to almantas88.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag almantas88:
Unflagging almantas88 will restore default visibility to their posts.
Top comments (3)
npmjs.com/package/vue-json-viewer
does this do the trick with children id references? Because back-end send data as a plain json object, but not a tree.
From what I understand this module will display a json object in a UI format. If you want a specific structure, you're going to have to massage your data into that structure first and then feed it into the module.