I have a some simple JSON array of strings in which I want to display on my ng-grid. For example, if I have an array that is looks like so:
arrayOfStrings: ["test", "blah", "foo"];
I want to list all elements within this array in a column in my ng-grid, but I am having trouble doing so. Here is how I tried to render the elements within the array:
{field: 'arrayOfStrings', displayName: 'Array', width:'20%',
cellTemplate: '<div class="ngCellText" ng-class="col.colIndex()"><span ng-cell-text>{{row.getProperty(col.field)}} </span></div>'},
However, nothing shows up. If anyone knows how to display the elements within an array into a column, that would be appreciated. Thanks!