how to check object is empty in angular code example Example: Angular empty object angular.equals({}, $scope.card)