how to check if something was empty in the view code example Example: Angular empty object angular.equals({}, $scope.card)