When accessing a collection from inside $then, the array length of the collection is zero regardless of the data.
$scope.users = User.$search({ page: $scope.page }).$then(function(users) {
console.log(users.length);
users.forEach(function(user) {
console.log(user);
});
});