So we know 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 append the data into the current basket which is:
$scope.HouseBasket += data;
This will cause errors, I dont want to use a foreach loop to push() each data into the $scope.HouseBasket is there a faster way to add a list of Object into the angular list?
concatwhy even loop though..