Skip to content Skip to sidebar Skip to footer

Angular Js Data Table Issue With Nested Object

I am using angular js datatable for my project. Currently I am trying to access below object, 'finalizedArr':[ { 'treaceId':'KYC454353545', 'appro

Solution 1:

Out-of-the-box ngTable dynamic expects column.field to be property names, not navigators. (i.e. it doesn't handle dot syntax oneProperty.anotherProperty as it effectively does columnObject["fieldNameYouProvided"])

You could try a similar solution as noted here or you could try mapping your data model to a flat object.

Lastly, approval.usr and approval.threshold are not valid property accessors for the provided data model because approval is an array so to access the first values you would access them with approval[0].usr and approval[0].threshold which will not work as a dynamic column field property value for the aformentioned reasons.

Post a Comment for "Angular Js Data Table Issue With Nested Object"