I have an array of object to display in ui-grid like this.
JS
var arr = [{
'Reference': 1,
'Nominal load (daN)': 'xx',
'Nominal static deflection (mm)': 'yy'
}, {
'Reference': 2,
'Nominal load (daN)': 'xx1',
'Nominal static deflection (mm)': 'yy1'
}, {
'Reference': 3,
'Nominal load (daN)': 'xx2',
'Nominal static deflection (mm)': 'yy2'
}];
$scope.gridOptions= arr;
HTML
<div ui-grid=" {data: gridOptions}" class="grid"> </div>
but my ui-grid does not display second and third columns because of parentheses ( 'Nominal load (daN)' and 'Nominal static deflection (mm)'
) in headers