For me, $promise.then() is not working. It's throwing the following error:
Cannot read property 'then' of undefined
Example code:
$scope.query = UserService.query();
$scope.query.$promise.then(function(data){
console.log(data);
});
How can I fix this error?