I want to configure the text label user friendly. eg http response be like
[
{
"approved_datetimestamp": "",
"approved_by": "",
"effective_datetimestamp": "",
"act_datetimestamp": "",
"expiry_datetimestamp": "",
"rejected_datetimestamp": "",
"rejected_by": ""
}
]
Here, the key is a label, I want to configure that key. E.g. approved_datetimestamp
would be Approved Datetimestamp
.
I have approach that we can create constant variable like
const approved_datetimestamp = "Approved Datetimestamp";
when we displaying in template, I am using:
<div class="col-sm-6">{{row[rcolumn] | uppercase}}</div>
or else capitalise first letter of each word and replace underscore with a space. am expacting this