Browser with Answer Ah not for Ionic app

0

I'm developing an app with ionic and I'm trying to convert a xml from 322mb to json to bring the data to the page using angular js .

Here is the snippet of code:

.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, not

    
asked by anonymous 31.08.2015 / 17:13

0 answers