Well they're never going to be the same object, right since `$scope.editingPatient = new Patient $scope.currentPatient`. Check out hte docs for `angular.equals`, it does a shallow comparison.