Good evening, I'm not able to load a select on angularJS! It does not load, it goes blank. I'll post the code, if anyone can help me thank you !! Controller:
<script>
angular.module("cadastroMedico", []);
angular.module("cadastroMedico").controller("cadastroMedicoController", function ($scope, $http){
$scope.app = "Cadastro de paciêntes";
$scope.pacienteEspe = [
];
var pacienteEspecial = function (){
$http.get("http://localhost:27623/api/amb/Diseases/TESTES%20CUTANEOS%20DE%20LEITURA%20IMEDIATA").then(function (data) {
$scope.pacienteEspe = data;
console.log(data);
});
};
pacienteEspecial();
});
</script>
index.html:
<select class="form-control" ng-model="paciente.pacienteEspe" ng-options="pacienteEsp.Procedimento_tuss for pacienteEsp in pacienteEspe">
<option value="">Selecione uma opcão</option>
</select>
It does not load, it looks as if the data is there, but it does not have anything! I've tried everything .. If anyone can help ..
Returnonconsole: