Clear Modal Data

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() {



Solved it with this:

$state.go('signin', {}, {
                    reload: true,
                    inherit: false
1 Like