I want to display the following array in an ngGrid
$scope.pathinfo = ["28.86 GB left on dir1","28.86 GB left on dir2"]
My controller looks like this:
$scope.restorePathGridOptions = { data: '$scope.pathInfo',
columnDefs: [
{field: 'entry', displayName: 'Free Space for paths'}
]
}
And this is my HTML:
<div id="RestorepathsGrid" class="gridStyle" ng-grid="restorePathGridOptions">
I am assuming 'entry' is data value of array at indices 0 and 1.
But the grid does not show up at all.
Any ideas why?