PROBLEM
I have a problem returning the results of a query, since I need to sort the results of a query in a single array
in JavaScript, and not a array
with its objects, each object being a different array.
CODE
$scope.tableDatos= datosObtenidos.data;
var countRegistro = [];
$scope.tableDatos.forEach(function(registro, index)
{
countRegistro.push([registro.Registros]);
});
console.log("Registro: ", countRegistro);
RESULT OBTAINED
EXPECTED RESULT
Note: The expected data I did with a simple array that was declared with that order.
$scope.datos = [
["1", "3118"]
];