A JSON object has been provided to me with the following structure:
header: {
first: {
title: {
name: "Test
}
},
second: {
title: {
name: "Test 2"
},
desc: {
name: "Description"
}
}
}
I am looking to display it in a view similar to this: https://i.sstatic.net/2gQS0.png
How can I achieve this dynamic display in the view considering that the keys may vary each time, such as header
or main
? I want to create a customizable design like JSONEditor but with my own style. I attempted using ngIf, but it proved to be quite challenging. Any suggestions or assistance would be greatly appreciated.