S
S
Sergey Khlopov2019-12-18 09:45:51
Vue.js
Sergey Khlopov, 2019-12-18 09:45:51

How to display a nested list of comments?

Hello, please tell me, the server returns an array of comment objects to me,
This is how it looks like:
5df9c9d6b5538096162623.png
Each comment can have other comments, that is, the nesting depth is not known, nested comments are in the children property, and the question itself is how to display such a list ? I think that I need to somehow recursively draw a conclusion?
Thank you in advance for your response

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
ⓒⓢⓢ, 2019-12-18
@Shlop

Have you even looked at the Vue documentation, or why did this example not fit?
https://ru.vuejs.org/v2/examples/tree-view.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question