I would like to present data - which is an Object in Angular Mat Table example below:
{
"first": 15.0,
"second": [{"id":1,"data_1":"foo","dat_2":"bar"}],
"third": "2018-09-15T05:30",
"fourth": ["ONE", "TWO"],
"fifth": {"data_3":145,"id":2,"data_4":1600}
}
In fact I want to display it in a table, in first column there will be keys like "first", "second" and so on, in second column there will be a value (this might be a string, number array or array of objects.
What I actually have is presented here: my current progress - in table-basic-example.ts there are two elements: ELEMENT_DATA_NEW which is displayed correctly, however I want to display NEW_DATA
Note: I use angular mat dialog to open dialog, where this table will be presented.