I am trying to send a GET request using AnguarJS $http.get function.
However, the shorthand version is NOT working. Why is that?
Working:
$http({
    url: $rootScope.root + '/brands',
    method: 'GET',
    params: postData
}).success(function(data) {
    console.log(data);
});
Not working:
$http.get($rootScope.root + '/brands', postData).success(function(data) {
    console.log(data);
    $scope.brands = data;
});
 
    