Listen for the stateChangeStart and then destroy your Modal.
$scope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams){
$scope.modal.remove();
});
Listen for the stateChangeStart and then destroy your Modal.
$scope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams){
$scope.modal.remove();
});