Does anyone know why this does not work?
$http
.get('accept.php', {
source: link,
category_id: category
})
.success(function (data, status) {
$scope.info_show = data
});
and this does work:
$http
.get('accept.php?source=' + link + '&category_id=' + category)
.success(function (data, status) {
$scope.info_show = data
});
params
as above also resolves the problem of GET requests not usingdata
. AngularJS will not sort this out itself as jQuery does. (I don't think that's a good or bad thing, just different and may trip people up). – Israelite