Search code examples
javascriptangularjsangularjs-serviceangular-http

1.4mb data crashing browser in angular http request


I have a service that does a http request and get around of 1.4mb of json data.

It makes my browser stop responding. :(

MapService.measures(id).then(function (data){            
        console.log("Get Measures!");            
        $scope.measures = data;
    });

What should i do?


Solution

  • As Pankaj Parkar said, the problem was to render these data. So, i did simple pagination and solved it.