I have the following problem:
app.controller('EOGController', ['$scope', function($scope) {
$scope.result = "primero";
angular.element(document).ready(function () {
loadQuantiles();
});
var loadQuantiles = function () {
console.log("entro");
$scope.result = "ultimo";
console.log("salio");
}
}]);
index.html
<div class="container" ng-controller="EOGController">
{{result}} <!-- <- cuyo valor siempre es primero -->
</div>
Why does not it change from
PS: the console.logs()
if they exit correctly in the console