obj {
val1 {
nestedval {}
}
val2 {
nestedval {}
}
}
I'm having trouble accessing the nested value and assigning either val1 or val2 as a variable. I've been trying:
var getVal = obj.varible.nestedval
but it's not working for me. Can someone assist me with achieving this using angularjs? Thank you for your help.