Attempting to retrieve content from a website using Angular's $http service. The request seems to be successful as console.log(response.data) displays most of the content but is missing some parts. Check out my code below:
$http = angular.element(document.body).injector().get('$http');
function getAccess(url, token){
$http({
method: 'GET',
url: url,
headers:{"Authorization": 'Bearer '+ token }
})
.then(function(response) {
console.log(response.data);
})
.catch(function(error) {
console.log(error);
})
};
The beginning of the omitted html looks like this:
<div class="container">
::before
<!-- ngView: -->
<div data-ng-view="" class="ng-scope">
<div id="toast-container" ng-class="config.position" class="ng-
scope toast-top-right">
<!-- ngRepeat: toaster in toasters --></div>
<div ng-controller="ConsultaTransferenciaController" class="ng-
scope">
<h3>Transferencias recibidas - (Mis compras).
<a href="" ng-click="infoayuda()"><span style="color:green"
class="glyphicon glyphicon-info-sign" aria-hidden="true">
</span> </a>
</h3>
This is just a snippet as it continues further.. I also attempted to use Fetch with the same result. Any thoughts on why this specific part is not included in the response? Appreciate any insights.