if object is not empty angular code example Example: Angular empty object angular.equals({}, $scope.card)