Display Local Bank data on the screen, Ionic

3

The function that makes select and throws the data to result is this:

$scope.queryAndUpdateOverview = function(){
  f_Select("SELECT * from cadastroPessoa",[],
          function(results){       
            $scope.dados = results;   
            console.log ($scope.dados)        
          });
}

After this I set the data to $scope.dados and in html I use a ng-repeat , however the data does not appear on the screen, but in the console.log they appear.

    
asked by anonymous 28.08.2015 / 20:09

1 answer

1

Take a look at my answer at: link

You need to tell Angular that the data has changed. This happens automatically in some predefined cases, such as when using Models (the Angle arrow watchers by default), but it is not the case for a database query or another remote api.

    
24.11.2015 / 14:09