$scope.value = 0;
$scope.pol = function () {
var res = $scope.value;
return res;
}
var XHR = ("onload" in new XMLHttpRequest()) ? XMLHttpRequest : XDomainRequest;
var xhr = new XHR();
xhr.open('GET', 'http://mysite.ru/cart/', true);
xhr.onload = function() {
console.log( this.responseText );
}
xhr.onerror = function() {
console.log( 'Ошибка ' + this.status );
}
xhr.send();
$('#summ').find('span').text().split('.')[0].replace(/\D+/g,"")