I have an ajax call which returns array of objects like this:
Now, it works fine with my code of parsing it into a table in AngularJS.
I am trying to implement pagination with the table and issue arises that pagination does not work with objects, it has to be an array.
I am not able to convert this array of objects into array of arrays for pagination.
My Ajax call code is:
$http({
method: 'POST',
url: 'server/search/searchQuery.php',
data: {data: 'getData', searchText: id.SearchText , typeOfStudy: qTypeOfStudy , typeOfSpecies: qTypeOfSpecies , typeOfSpeciality: qTypeOfSpeciality },
headers: {'Content-Type': 'application/json'},
dataType:"json"
}).success(function(data) {
It would be great if someone can point to a post or a sample code which can convert it.
I already do json_encode on php side.
