Display Local Bank data on the screen, Ionic

Posted on

Question :

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

$scope.queryAndUpdateOverview = function(){
  f_Select("SELECT * from cadastroPessoa",[],
            $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.


Answer :

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.


Leave a Reply

Your email address will not be published. Required fields are marked *