Is there a way so that when you hide your modal and then reopen it that it has no data in it? At the moment when I open my modal after a refresh it is blank. But once I enter data then submit it and reopen, all the same data is there.
These both don’t work.
$scope.$on('$destroy', function() {
$scope.userModal.remove();
});
or
$scope.userModal.hide();