So we know that the code below works:
$http({ method: 'POST', url: url_getMoreHouse })
.success(function (data) {
alert('Works');
console.log(data);
$scope.HouseBasket = data;
});
However, if we want to add data to the current basket, which:
$scope.HouseBasket += data;
This will lead to errors, I do not want to use the foreach loop for push () for each of the data in the $ area. Is HouseBasket a faster way to add a list of objects to an angular list?
source
share