$scope.password: 
$scope.myForm.password.$viewValue: 
$scope.passwordConfirm: 
$scope.password === $scope.passwordConfirm: true
$scope.myForm.password.$viewValue === passwordConfirm: true
Edit in JS Bin