$ http get Parameter funktioniert nicht

Weiß jemand, warum dies nicht funktioniert?

$http
    .get('accept.php', {
        source: link,
        category_id: category
    })
    .success(function (data, status) {
        $scope.info_show = data
    });

und das funktioniert:

$http
    .get('accept.php?source=' + link + '&category_id=' + category)
    .success(function (data, status) {
        $scope.info_show = data
    });

InformationsquelleAutor der Frage kahonmlg | 2013-06-20

Schreibe einen Kommentar