Browser with Answer Oh not for Ionic app

Asked

Viewed 20 times

0

I’m developing an app with Ionic and I’m trying to convert a xml of 322mb for json, to take the data to the page using angular js.

Follow the code excerpt:

.controller('ParlamentarCtrl', function($scope, $http){

    $http.get('js/AnoAtual.xml').then(function(response){

        var deputados = [];
        var x2js = new X2JS();
        var anoAtual = x2js.xml_str2json(response.data);
        $scope.deputadoObj = anoAtual.despesas.despesa;

        var numOfDeputados = $scope.deputadoObj.length;
        for(var i = 0; i<numOfDeputados; i++){
            deputados.push({
                name: $scope.deputadoObj[i].txNomeParlamentar
            });
        }
            $scope.nomeDeputados = deputados; 
    });

});

but unfortunately when I call Scope nomeDeputados, the browser gives a delay and shows the page Ah,

  • I guess I didn’t understand that "Oh, no". Could you explain? That would be a page of error?

  • It looks like Chrome’s default timeout error message. Be more specific about the browser message.

  • yes it is a Chrome message error, but unfortunately it does not specify the type of error, but looking at the data stream is timeout error because the file is too big. I’m trying to use basex but I’m having problems in the routine for nodejs I don’t know how to use xquery bind

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.