Is there a method to clear all content from a ui-grid including filters, data, and columns?
I want to reset the grid when a button is clicked in order to fetch new data with an HTTP request and display it using the same grid without refreshing the page.
I attempted to use $scope.gridOptions.length=0
, but the data persists and upon making a new request, the new results are added to the existing ones.