Checking if object is empty, works with ng-show but not from controller? January 8, 2023 by Tarik Or you could keep it simple by doing something like this: alert(angular.equals({}, $scope.items));