I want to take the first record out of the array but I get the following error:
This is my code:
servicioMiClaro.obtenerDirecciones().then(function (response) {
$scope.listadoProductoServicios = response.data;
console.log(response.data);
}, function (error) {
$scope.status = 'Unable to load customer data: ' + error.message;
});
console.log( $scope.listadoProductoServicios.listadoProductoServicios[0].afiliado);}