I am looking to achieve a simple task - cleaning the $scope.user fields without encountering errors.
if ($scope.contactForm.$valid) {
$scope.user = {};
$scope.contactForm.$setPristine();
}
However, I'm still experiencing validation errors such as 'required', and even when there are no errors, all of them are displayed.
You can check out the Plunker example here.