Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Create nested html structure


Check following link for that I'm trying

I have following json

data = {
a: {
b: "abc",
c: [
d: "pqr",
e: true
f: 1,
e: ["xyz", 1]

Now I'm trying to create a Html Structure for above json in angular 2

  1. If object is present then show accordion
  2. If object in list then show tab in accordion
  3. If list present then show data in ul list
  4. If object in object the show accordion in accordion

I'm Trying to do this

But How I display Nested accordian, tab and data inside the each

On my current data I get following output but I don't know how the json is deep

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered

This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Create nested html structure


Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription