-1
My variable scope.id_propertie
returns Undefined. Some way to catch her off?
$http.post("consults/properties.php", {
'action': 'list_properties'
}).then(function(response) {
let data = response;
for (let i = 0; i < data.length; i++) {
$scope.id_propertie = data[i].id_propertie;
}
});
console.log($scope.id_propertie);
The logic is the same: https://answall.com/a/413864/99718
– Valdeir Psr
I didn’t understand your answer could ne give an example with the top code?
– Alef Felipe