Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

68
Vistas
converting an array to a tree list

i have a problem in converting my array to tree list array in angular. here is my array. please help me to convert it to proper format of tree view list.

a = [ { directory: "p1/p2", directoryId: "164", name: "aaaa" } { directory: "s1/s2/s3", directoryId: "168", name: "nnnn" }, { directory: "h1/h2", directoryId: "170", name: "ffff" }, { directory: "h1/h2", directoryId: "170", name: "mmmm" }, { directory: "h1/h2", directoryId: "170", name: "bbbb" } ]

i want to convert this array to the image that i have attached.enter image description here

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos