I need to display an array of strings within ui-grid. Single column, one string per row
问题 The REST API I'm calling returns an array in the format: ["a", "b", "c", "d"] And my ui-grid needs to display those data entries in a single column, one per row. I have: $scope.items = []; $scope.gridOptions = { data: 'items' }; And my success callback function within my $http call just sets $scope.items to response.data . This works fine for data in other methods that's received as an array of JSON objects, but in this case where I just get strings, I get the following error in the console