I am having problem with resetting signup modal form fields.
For example, I have called a custom resetForm function when the user click modal close button and after getting $http request.
$scope.resetForm = function () {
$scope.successMessage = "";
$scope.message = "";
$scope.FPEmail = "";
$scope.forgotForm.$setPristine();
};
But the bootstrap modals have property of getting close by clicking outside the modal body. In this case, I am not able to resetForm. I have tried to resolve it by putting ng-click on the button by which I am opening the modal. But this button is situated outside the controller and I don't know how to reset the form from outside the controller.