I need help with my angularjs application that utilizes Ui grid. There is an external dropdown menu located outside of the ui grid, which lists all the column names in the grid. I want to be able to select a specific column name from this dropdown and retrieve only the data from that column in an array format. Is there a straightforward method to achieve this?
As seen in this example at , if I were to choose 'name' from the dropdown, I would like to retrieve ['Sandoval Mclean', 'Nieves Mack', ...]. Similarly, if I were to choose 'email', I would expect to get ['[email protected]', '[email protected]', ... ]