I am new to angular 2. How do I get nested data from JSON into my Template?
Here's my JSON:
[
{
"eId" : "1",
"name":"Jimi Hendrix",
"designation":"UI Developer",
"profileImage":"../defaultDP.jpeg",
"skills":"HTML, CSS, JS, jQuery, AngularJS, XML",
"graph" : {
"keys" : ["HTML, JS, jQuery, AngularJS"],
"values" : ["8, 5, 8, 6"]
}
}
]
And in my template when I am trying to access name, eId I can access easily. e.g,
{{JSONDummyData.eId}} {{JSONDummyData.name}}
but when I am trying to get Nested values, e.g,
{{JSONDummyData.graph.values}}
I am not able to access this. thanks in advance!